err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/start.lua:307: loop or previous error loading module 'plg4d'
stack traceback:
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/lib/start.lua:307: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	01:52:26	_lua_ FileRun	(1. Application process)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	01:52:26	_lua_ FileUnload	(1. Application process)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/start.lua:307: loop or previous error loading module 'plg4d'
stack traceback:
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/lib/start.lua:307: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	16:43:38	_lua_ FileRun	(1. Application process)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	16:43:38	_lua_ FileUnload	(1. Application process)

Document or preference was not found: Mac:Users:pasi:nc:nc-server:manager:4d:print_preview_4d.lx.	8.12.2021	16:45:42	_lua_ FileRun	(7. tbl_ 6)

err: Document or preference was not found: Mac:Users:pasi:nc:nc-server:manager:4d:print_preview_4d.lx.	8.12.2021	16:45:42	_lua_ FileRun	(7. tbl_ 6)

unload lx environment: does not exist.	8.12.2021	16:45:42	_lua_ FileUnload	(7. tbl_ 6)

SR Print Report error: -8000.	8.12.2021	16:45:42	_rep_P_SuperRepor_	(7. tbl_ 6)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/start.lua:307: loop or previous error loading module 'plg4d'
stack traceback:
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/lib/start.lua:307: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	16:57:37	_lua_ FileRun	(1. Application process)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	16:57:37	_lua_ FileUnload	(1. Application process)

Tcp server 2 start check: err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/start.lua:307: loop or previous error loading module 'plg4d'
stack traceback:
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/lib/start.lua:307: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	16:57:37	_lx_SERVER	(1. Application process)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	17:08:52	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:08:58	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:209: attempt to call upvalue 'l' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:209: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:256: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:08:59	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:08:59	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:08:59	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	17:11:20	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:11:29	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:294: attempt to index upvalue 'c4d' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:294: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	17:11:30	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:11:30	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:11:30	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	17:14:45	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:14:57	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: attempt to index upvalue 'c4d' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	17:14:59	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:14:59	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:14:59	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 on jo käynnissä.	8.12.2021	17:18:18	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:18:18	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: attempt to index upvalue 'c4d' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	17:18:20	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:18:20	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:18:20	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: attempt to index upvalue 'c4d' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	17:18:57	_lua_ FileRun	(1. Application process)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:18:57	_lua_ FileUnload	(1. Application process)

Tcp server 2 start check: err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: attempt to index upvalue 'c4d' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	17:18:57	_lx_SERVER	(1. Application process)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	17:23:28	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:23:32	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:292: attempt to index upvalue 'c4d' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:292: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	17:23:34	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:23:34	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:23:34	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 on jo käynnissä.	8.12.2021	17:25:12	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:25:12	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: attempt to index upvalue 'c4d' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	17:25:14	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:25:14	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:25:14	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:222: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:255: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:28:48	_lua_ FileRun	(1. Application process)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:28:48	_lua_ FileUnload	(1. Application process)

Tcp server 2 start check: err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:222: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:255: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:28:48	_lx_SERVER	(1. Application process)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:30:21	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:222: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:255: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:30:22	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:30:22	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:30:22	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	17:30:43	_lx_SERVER	(4. tbl_ 3)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:222: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:255: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:31:15	_lua_ FileRun	(1. Application process)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:31:15	_lua_ FileUnload	(1. Application process)

Tcp server 2 start check: err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:222: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:255: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:31:15	_lx_SERVER	(1. Application process)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	17:49:22	_lx_SERVER	(4. tbl_ 3)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:222: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:255: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:49:54	_lua_ FileRun	(1. Application process)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:49:54	_lua_ FileUnload	(1. Application process)

Tcp server 2 start check: err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:178: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:222: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:255: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:49:54	_lx_SERVER	(1. Application process)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	17:51:06	_lx_SERVER	(4. tbl_ 3)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	17:51:39	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:51:44	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:179: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:179: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:223: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:256: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:51:46	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:51:46	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:51:46	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:179: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:179: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:223: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:256: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:52:48	_lua_ FileRun	(1. Application process)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:52:48	_lua_ FileUnload	(1. Application process)

Tcp server 2 start check: err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:179: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:179: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:223: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:256: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:52:48	_lx_SERVER	(1. Application process)

Ei voi hakea taulusta Asetus, asetuksen nimi <>_lnk_lDefaultInputOpenState.	8.12.2021	17:53:56	_prf_ Qry_OLD	(4. tbl_ 3)

Ei voi hakea taulusta Asetus, asetuksen nimi <>_lnk_lUuidInInfoShow.	8.12.2021	17:53:56	_prf_ Qry_OLD	(4. tbl_ 3)

Ei voi hakea taulusta Asetus, asetuksen nimi <>af_lLoadOnActivate.	8.12.2021	17:53:56	_prf_ Qry_OLD	(4. tbl_ 3)

Tcp server 2 is disabled by '<>_lx_lServerStart'...	8.12.2021	17:55:01	_lx_SERVER	(1. Application process)

Tcp server 2 is disabled by '<>_lx_lServerStart'...	8.12.2021	17:56:32	_lx_SERVER	(4. tbl_ 3)

Ei voi hakea taulusta Asetus, asetuksen nimi <>_lnk_lDefaultInputOpenState.	8.12.2021	17:56:40	_prf_ Qry_OLD	(4. tbl_ 3)

Ei voi hakea taulusta Asetus, asetuksen nimi <>_lnk_lUuidInInfoShow.	8.12.2021	17:56:40	_prf_ Qry_OLD	(4. tbl_ 3)

Ei voi hakea taulusta Asetus, asetuksen nimi <>af_lLoadOnActivate.	8.12.2021	17:56:40	_prf_ Qry_OLD	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:56:47	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:24: attempt to index upvalue 'util' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:24: in function 'printLog'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:164: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:255: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	17:56:49	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:56:49	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:56:49	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 on jo käynnissä.	8.12.2021	17:58:53	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	17:58:53	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: attempt to call upvalue 'toUnichar' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:293: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	17:58:55	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	17:58:55	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	17:58:55	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 on jo käynnissä.	8.12.2021	18:02:18	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:02:18	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:24: attempt to index upvalue 'util' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:24: in function 'printLog'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:164: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:255: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:37: in function 'loadLibs'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:292: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	18:02:20	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	18:02:20	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:02:20	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 on jo käynnissä.	8.12.2021	18:03:55	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:03:55	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

stack overflow
stack traceback:
	[C]: in function 'tostring'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:166: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:257: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:53: in function 'printLog'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:166: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:257: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:53: in function 'printLog'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:166: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:257: in function 'callMethodNoReturn'
	...
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:166: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:257: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:53: in function 'printLog'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:166: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:257: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:27: in function 'loadLibs'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:294: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	18:03:56	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	18:03:56	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:03:56	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	18:05:35	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:05:40	_lx_SERVER	(7. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/db/plg4d.lua:180: attempt to call upvalue 'toUnistring' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:180: in function 'setStringParam'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:224: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:257: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:314: in function 'print'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:27: in function 'loadLibs'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:294: in function 'getLongVariable'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:16: in main chunk.	8.12.2021	18:05:42	_lua_ FileRun	(7. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	18:05:42	_lua_ FileUnload	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:05:42	_lx_SERVER	(7. palvelin)

Tcp palvelin 2 ei ole käynnissä.	8.12.2021	18:07:49	_lx_SERVER	(4. tbl_ 3)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:07:52	_lx_SERVER	(7. palvelin)

c4d: userdata: 0x0124426b98.	8.12.2021	18:07:53	lx	(7. palvelin)

unicode4d = {
 ["toUnichar"] = "function: 0x012445b500, defined in (82-106)@/Users/pasi/nc/nc-server/lib/unicode4d.lua";
 ["fromUnistring"] = "function: 0x012445f240, defined in (139-159)@/Users/pasi/nc/nc-server/lib/unicode4d.lua";
 ["fromUnichar"] = "function: 0x0124441c00, defined in (118-130)@/Users/pasi/nc/nc-server/lib/unicode4d.lua";
 ["toUnistring"] = "function: 0x0124463130, defined in (133-136)@/Users/pasi/nc/nc-server/lib/unicode4d.lua";
};.	8.12.2021	18:07:53	lx	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:07:53	lx	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:07:54	lx	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:07:54	lx	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:07:54	lx	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:07:54	lx	(7. palvelin)

  database connect time: 0.0008 seconds.	8.12.2021	18:07:54	lx	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:07:54	lx	(7. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:07:54	lx	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:07:54	lx	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01362f16f0, size: 400.	8.12.2021	18:07:54	lx	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:07:54	lx	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:07:54	lx	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:07:54	lx	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:07:54	lx	(7. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:07:54	lx	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:07:54	lx	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:07:54	lx	(7. palvelin)

All plugins have been loaded	1.	8.12.2021	18:07:54	lx	(7. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json.	8.12.2021	18:07:54	lx	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:07:54	lx	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:07:54	lx	(7. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:07:54	lx	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:07:54	lx	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:07:54	lx	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:07:54	lx	(7. palvelin)

--- server started in 0.005 seconds, 2021-12-08 18:07:54, used memory 2995.8 kb ---	5.	8.12.2021	18:07:54	lx	(7. palvelin)

OSX arm64, using: rapidjson_arm	1.	8.12.2021	18:07:54	lx	(7. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:09:35	_lx_SERVER	(4. tbl_ 3)

*** tcp close for sock 75, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:09:35	lx	(7. palvelin)

closing socket '75'	1.	8.12.2021	18:09:35	lx	(7. palvelin)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:09:35	lx	(7. palvelin)

closing socket '76'	1.	8.12.2021	18:09:35	lx	(7. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            7368
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:09:35	lx	(7. palvelin)

--- server stopped ---.	8.12.2021	18:09:35	lx	(7. palvelin)

finalizer: free p1	cdata<void *>: 0x01362f16f0.	8.12.2021	18:09:35	lx	(7. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:09:35	_lx_SERVER	(7. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:09:44	_lx_SERVER	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:09:46	lx	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:09:46	lx	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:09:46	lx	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:09:46	lx	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:09:46	lx	(7. palvelin)

  database connect time: 0.0003 seconds.	8.12.2021	18:09:46	lx	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:09:46	lx	(7. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:09:46	lx	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:09:46	lx	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0136caed70, size: 400.	8.12.2021	18:09:46	lx	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:09:46	lx	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:09:46	lx	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:09:46	lx	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:09:46	lx	(7. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:09:46	lx	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:09:46	lx	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:09:46	lx	(7. palvelin)

All plugins have been loaded	1.	8.12.2021	18:09:46	lx	(7. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json.	8.12.2021	18:09:46	lx	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:09:46	lx	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:09:46	lx	(7. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:09:46	lx	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:09:46	lx	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:09:46	lx	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:09:46	lx	(7. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:09:46, used memory 2995.7 kb ---	5.	8.12.2021	18:09:46	lx	(7. palvelin)

OSX arm64, using: rapidjson_arm	1.	8.12.2021	18:09:46	lx	(7. palvelin)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:11:11	lx	(7. palvelin)

closing socket '76'	1.	8.12.2021	18:11:11	lx	(7. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:11:11	lx	(7. palvelin)

closing socket '77'	1.	8.12.2021	18:11:11	lx	(7. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            6096
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:11:11	lx	(7. palvelin)

--- server stopped ---.	8.12.2021	18:11:11	lx	(7. palvelin)

finalizer: free p1	cdata<void *>: 0x0136caed70.	8.12.2021	18:11:11	lx	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:11:23	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:11:23	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:11:23	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:11:23	lx	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:11:23	lx	(1. Application process)

  database connect time: 0.0004 seconds.	8.12.2021	18:11:23	lx	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:11:23	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:11:23	lx	(1. Application process)


error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1.	8.12.2021	18:11:23	lx	(1. Application process)

Tcp server 2 start check: start.	8.12.2021	18:11:23	_lx_SERVER	(1. Application process)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:11:23	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:11:25	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:11:25	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:11:25	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:11:25	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:11:25	lx	(4. palvelin)

  database connect time: 0.0003 seconds.	8.12.2021	18:11:25	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:11:25	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:11:25	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:11:25	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0128dc77d0, size: 400.	8.12.2021	18:11:25	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:11:25	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:11:25	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:11:25	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:11:25	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:11:25	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:11:25	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:11:25	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:11:25	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json.	8.12.2021	18:11:25	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:11:25	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:11:25	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:11:25	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:11:25	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:11:25	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:11:25	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:11:25, used memory 2995.7 kb ---	5.	8.12.2021	18:11:25	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	8.12.2021	18:11:25	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:13:15	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:13:15	lx	(4. palvelin)

closing socket '73'	1.	8.12.2021	18:13:15	lx	(4. palvelin)

*** tcp close for sock 74, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:13:15	lx	(4. palvelin)

closing socket '74'	1.	8.12.2021	18:13:15	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            7880
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:13:15	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:13:15	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0128dc77d0.	8.12.2021	18:13:15	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:13:15	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:13:20	_lx_SERVER	(4. palvelin)

lfs_load require error: /Users/pasi/nc/nc-server/lib/fs.lua:8: loop or previous error loading module 'lfs_load'.	8.12.2021	18:13:22	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:13:22	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:13:22	lx	(4. palvelin)

/Users/pasi/nc/nc-server/lib/db/dqry.lua:16: loop or previous error loading module 'dschema'.	8.12.2021	18:13:22	_lx_SERVER	(4. palvelin)

/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:140: loop or previous error loading module 'nc-server'.	8.12.2021	18:13:22	_lx_SERVER	(4. palvelin)

Tcp palvelin 2, sama virhe tuli yli 10 keraa peräkkäin, Tcp palvelin 2 sammutetaan.	8.12.2021	18:13:27	_lx_SERVER	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:13:27	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:14:54	_lx_SERVER	(4. palvelin)

lfs_load require error: /Users/pasi/nc/nc-server/lib/fs.lua:8: loop or previous error loading module 'lfs_load'.	8.12.2021	18:14:55	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:14:55	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:14:55	lx	(4. palvelin)

/Users/pasi/nc/nc-server/lib/db/dqry.lua:16: loop or previous error loading module 'dschema'.	8.12.2021	18:14:55	_lx_SERVER	(4. palvelin)

/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:140: loop or previous error loading module 'nc-server'.	8.12.2021	18:14:55	_lx_SERVER	(4. palvelin)

Tcp palvelin 2, sama virhe tuli yli 10 keraa peräkkäin, Tcp palvelin 2 sammutetaan.	8.12.2021	18:15:01	_lx_SERVER	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:15:01	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:15:28	_lx_SERVER	(4. palvelin)

lfs_load require error: /Users/pasi/nc/nc-server/lib/fs.lua:8: loop or previous error loading module 'lfs_load'.	8.12.2021	18:15:29	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:15:29	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:15:29	lx	(4. palvelin)

/Users/pasi/nc/nc-server/lib/db/dqry.lua:16: loop or previous error loading module 'dschema'.	8.12.2021	18:15:29	_lx_SERVER	(4. palvelin)

/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:140: loop or previous error loading module 'nc-server'.	8.12.2021	18:15:29	_lx_SERVER	(4. palvelin)

Tcp palvelin 2, sama virhe tuli yli 10 keraa peräkkäin, Tcp palvelin 2 sammutetaan.	8.12.2021	18:15:35	_lx_SERVER	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:15:35	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:17:21	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:17:23	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:17:23	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:17:23	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:17:23	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:17:23	lx	(4. palvelin)

  database connect time: 0.0003 seconds.	8.12.2021	18:17:23	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:17:23	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:17:23	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:17:23	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0128dc77d0, size: 400.	8.12.2021	18:17:23	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:17:23	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:17:23	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:17:23	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:17:23	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:17:23	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:17:23	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:17:23	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:17:23	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json.	8.12.2021	18:17:23	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:17:23	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:17:23	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:17:23	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:17:23	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:17:23	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:17:23	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:17:23, used memory 2991.8 kb ---	5.	8.12.2021	18:17:23	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	8.12.2021	18:17:23	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:17:43	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 74, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:17:43	lx	(4. palvelin)

closing socket '74'	1.	8.12.2021	18:17:43	lx	(4. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:17:43	lx	(4. palvelin)

closing socket '78'	1.	8.12.2021	18:17:43	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            1424
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:17:43	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:17:43	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0128dc77d0.	8.12.2021	18:17:43	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:17:43	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:17:51	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:17:52	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:17:53	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:17:53	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:17:53	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:17:53	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	8.12.2021	18:17:53	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:17:53	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:17:53	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:17:53	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011d145b80, size: 400.	8.12.2021	18:17:53	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:17:53	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:17:53	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:17:53	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:17:53	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:17:53	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:17:53	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:17:53	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:17:53	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json.	8.12.2021	18:17:53	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:17:53	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:17:53	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:17:53	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:17:53	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:17:53	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:17:53	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:17:53, used memory 2991.8 kb ---	5.	8.12.2021	18:17:53	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	8.12.2021	18:17:53	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:27:40	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:27:40	lx	(4. palvelin)

closing socket '78'	1.	8.12.2021	18:27:40	lx	(4. palvelin)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:27:40	lx	(4. palvelin)

closing socket '79'	1.	8.12.2021	18:27:40	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            41360
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:27:40	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:27:40	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x011d145b80.	8.12.2021	18:27:40	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:27:40	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:27:47	_lx_SERVER	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	18:27:48	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:27:48	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:27:48	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:27:48	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:27:48	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:27:48	lx	(4. palvelin)

  database connect time: 0.0003 seconds.	8.12.2021	18:27:48	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:27:48	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:27:48	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:27:48	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0128dc77d0, size: 400.	8.12.2021	18:27:48	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:27:48	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:27:48	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:27:48	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:27:48	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:27:48	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:27:48	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:27:48	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:27:48	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json.	8.12.2021	18:27:48	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:27:48	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:27:48	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:27:48	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:27:48	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:27:48	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:27:48	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:27:48, used memory 2991.3 kb ---	5.	8.12.2021	18:27:48	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	8.12.2021	18:27:48	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:31:55	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:31:55	lx	(4. palvelin)

closing socket '79'	1.	8.12.2021	18:31:55	lx	(4. palvelin)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:31:55	lx	(4. palvelin)

closing socket '80'	1.	8.12.2021	18:31:55	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            17472
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:31:55	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:31:55	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0128dc77d0.	8.12.2021	18:31:55	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:31:55	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:32:00	_lx_SERVER	(4. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/start.lua:110: attempt to index upvalue 'lfs' (a boolean value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/start.lua:110: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:243: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:367: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	8.12.2021	18:32:01	_lua_ FileRun	(4. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	8.12.2021	18:32:01	_lua_ FileUnload	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:32:01	_lx_SERVER	(4. palvelin)

Tcp palvelin 2 on jo käynnissä.	8.12.2021	18:32:33	_lx_SERVER	(5. tbl_ 4)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:32:33	_lx_SERVER	(4. palvelin)

* using lfs_ffi.	8.12.2021	18:32:35	lx	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	18:32:35	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:32:35	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:32:35	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:32:35	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:32:35	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:32:35	lx	(4. palvelin)

  database connect time: 0.0003 seconds.	8.12.2021	18:32:35	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:32:35	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:32:35	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:32:35	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012ea56fd0, size: 400.	8.12.2021	18:32:35	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:32:35	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:32:35	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:32:35	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:32:35	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:32:35	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:32:35	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:32:35	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:32:35	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json.	8.12.2021	18:32:35	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:32:35	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:32:35	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:32:35	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:32:35	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:32:35	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:32:35	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:32:35, used memory 2995.4 kb ---	5.	8.12.2021	18:32:35	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	8.12.2021	18:32:35	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:34:23	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:34:23	lx	(4. palvelin)

closing socket '80'	1.	8.12.2021	18:34:23	lx	(4. palvelin)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:34:23	lx	(4. palvelin)

closing socket '81'	1.	8.12.2021	18:34:23	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            7760
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:34:23	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:34:23	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x012ea56fd0.	8.12.2021	18:34:23	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:34:23	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:34:26	_lx_SERVER	(4. palvelin)

* using lfs_ffi.	8.12.2021	18:34:28	lx	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	18:34:28	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:34:28	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:34:28	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:34:28	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:34:28	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:34:28	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	8.12.2021	18:34:28	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:34:28	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:34:28	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:34:28	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129ee3ff0, size: 400.	8.12.2021	18:34:28	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:34:28	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:34:28	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:34:28	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:34:28	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:34:28	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:34:28	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:34:28	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:34:28	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json.	8.12.2021	18:34:28	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:34:28	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:34:28	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:34:28	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:34:28	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:34:28	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:34:28	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:34:28, used memory 2993.4 kb ---	5.	8.12.2021	18:34:28	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	8.12.2021	18:34:28	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:36:47	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:36:47	lx	(4. palvelin)

closing socket '81'	1.	8.12.2021	18:36:47	lx	(4. palvelin)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:36:47	lx	(4. palvelin)

closing socket '82'	1.	8.12.2021	18:36:47	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            10032
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:36:47	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:36:47	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0129ee3ff0.	8.12.2021	18:36:47	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:36:47	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:36:53	_lx_SERVER	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	18:36:54	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:36:54	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:36:54	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:36:54	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:36:54	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:36:54	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	8.12.2021	18:36:54	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:36:54	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:36:54	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:36:54	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012ea5eb00, size: 400.	8.12.2021	18:36:54	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:36:54	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:36:54	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:36:54	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:36:54	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:36:54	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:36:54	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:36:54	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:36:54	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json.	8.12.2021	18:36:54	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:36:54	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:36:54	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:36:55	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:36:55	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:36:55	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:36:55	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:36:55, used memory 2995.6 kb ---	5.	8.12.2021	18:36:55	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm, lfs-ffi	1.	8.12.2021	18:36:55	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:38:05	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:38:05	lx	(4. palvelin)

closing socket '82'	1.	8.12.2021	18:38:05	lx	(4. palvelin)

*** tcp close for sock 83, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:38:05	lx	(4. palvelin)

closing socket '83'	1.	8.12.2021	18:38:05	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            5072
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:38:05	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:38:05	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x012ea5eb00.	8.12.2021	18:38:05	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:38:05	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:38:10	_lx_SERVER	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	18:38:11	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:38:11	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:38:11	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:38:11	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:38:11	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:38:11	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	8.12.2021	18:38:11	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:38:11	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:38:11	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:38:11	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012ea1fc20, size: 400.	8.12.2021	18:38:11	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:38:11	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:38:11	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:38:11	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:38:11	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:38:11	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:38:11	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:38:11	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:38:11	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json.	8.12.2021	18:38:11	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:38:11	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:38:11	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:38:11	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:38:11	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:38:11	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:38:11	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:38:11, used memory 2995.5 kb ---	5.	8.12.2021	18:38:11	lx	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1.	8.12.2021	18:38:11	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:38:59	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 83, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:38:59	lx	(4. palvelin)

closing socket '83'	1.	8.12.2021	18:38:59	lx	(4. palvelin)

*** tcp close for sock 84, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:38:59	lx	(4. palvelin)

closing socket '84'	1.	8.12.2021	18:38:59	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            3384
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:38:59	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:38:59	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x012ea1fc20.	8.12.2021	18:38:59	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:38:59	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:39:04	_lx_SERVER	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	18:39:06	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:39:06	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:39:06	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:39:06	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:39:06	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:39:06	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	8.12.2021	18:39:06	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:39:06	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:39:06	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:39:06	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012ea1fc20, size: 400.	8.12.2021	18:39:06	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:39:06	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:39:06	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:39:06	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:39:06	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:39:06	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:39:06	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:39:06	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:39:06	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json.	8.12.2021	18:39:06	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:39:06	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:39:06	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:39:06	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:39:06	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:39:06	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:39:06	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:39:06, used memory 2995.5 kb ---	5.	8.12.2021	18:39:06	lx	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1.	8.12.2021	18:39:06	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:39:31	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 84, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:39:32	lx	(4. palvelin)

closing socket '84'	1.	8.12.2021	18:39:32	lx	(4. palvelin)

*** tcp close for sock 85, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:39:32	lx	(4. palvelin)

closing socket '85'	1.	8.12.2021	18:39:32	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            1784
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:39:32	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:39:32	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x012ea1fc20.	8.12.2021	18:39:32	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:39:32	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:39:36	_lx_SERVER	(4. palvelin)

lfs_load require: table: 0x0176e748e8.	8.12.2021	18:39:38	lx	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	18:39:38	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:39:38	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:39:38	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:39:38	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:39:38	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:39:38	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	8.12.2021	18:39:38	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:39:38	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:39:38	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:39:38	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129753b60, size: 400.	8.12.2021	18:39:38	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:39:38	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:39:38	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:39:38	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:39:38	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:39:38	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:39:38	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:39:38	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:39:38	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json.	8.12.2021	18:39:38	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:39:38	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:39:38	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:39:38	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:39:38	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:39:38	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:39:38	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:39:38, used memory 2995.6 kb ---	5.	8.12.2021	18:39:38	lx	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1.	8.12.2021	18:39:38	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:40:28	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 85, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:40:28	lx	(4. palvelin)

closing socket '85'	1.	8.12.2021	18:40:28	lx	(4. palvelin)

*** tcp close for sock 86, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:40:28	lx	(4. palvelin)

closing socket '86'	1.	8.12.2021	18:40:28	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            3592
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:40:28	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	18:40:28	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0129753b60.	8.12.2021	18:40:28	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:40:28	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:40:32	_lx_SERVER	(4. palvelin)

lfs_load require error: /Users/pasi/nc/nc-server/lib/fs.lua:8: loop or previous error loading module 'lfs_load'.	8.12.2021	18:40:33	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:40:33	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:40:33	lx	(4. palvelin)

/Users/pasi/nc/nc-server/lib/db/dqry.lua:16: loop or previous error loading module 'dschema'.	8.12.2021	18:40:33	_lx_SERVER	(4. palvelin)

/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:140: loop or previous error loading module 'nc-server'.	8.12.2021	18:40:34	_lx_SERVER	(4. palvelin)

Tcp palvelin 2, sama virhe tuli yli 10 keraa peräkkäin, Tcp palvelin 2 sammutetaan.	8.12.2021	18:40:39	_lx_SERVER	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:40:39	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:43:10	_lx_SERVER	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	18:43:12	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:43:12	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:43:12	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:43:12	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:43:12	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:43:12	lx	(4. palvelin)

  database connect time: 0.0003 seconds.	8.12.2021	18:43:12	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:43:12	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:43:12	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:43:12	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01297f0620, size: 400.	8.12.2021	18:43:12	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:43:12	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:43:12	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:43:12	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:43:12	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:43:12	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:43:12	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:43:12	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:43:12	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json.	8.12.2021	18:43:12	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:43:12	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:43:12	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:43:12	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:43:12	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:43:12	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:43:12	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:43:12, used memory 2991.5 kb ---	5.	8.12.2021	18:43:12	lx	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1.	8.12.2021	18:43:12	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	18:46:42 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 86, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:46:42 	lx 	(4. palvelin)

closing socket '86'	1.	8.12.2021	18:46:42 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	18:46:42 	lx 	(4. palvelin)

closing socket '87'	1.	8.12.2021	18:46:42 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            14960
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	18:46:42 	lx 	(4. palvelin)

--- server stopped ---.	8.12.2021	18:46:42 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01297f0620.	8.12.2021	18:46:42 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	18:46:42 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	18:47:04 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	18:47:05 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds.	8.12.2021	18:47:05 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01773c71e0, size: 400.	8.12.2021	18:47:05 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	18:47:05 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	18:47:05 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json.	8.12.2021	18:47:05 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 18:47:05, used memory 2995.5 kb ---	5.	8.12.2021	18:47:05 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1.	8.12.2021	18:47:05 	lx 	(4. palvelin)

Ei voi hakea taulusta Asetus, asetuksen nimi <>_lnk_lDefaultInputOpenState.	8.12.2021	18:47:38	_prf_ Qry_OLD	(5. tbl_ 4)

Ei voi hakea taulusta Asetus, asetuksen nimi <>_lnk_lUuidInInfoShow.	8.12.2021	18:47:38	_prf_ Qry_OLD	(5. tbl_ 4)

Ei voi hakea taulusta Asetus, asetuksen nimi <>af_lLoadOnActivate.	8.12.2021	18:47:38	_prf_ Qry_OLD	(5. tbl_ 4)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	19:02:11	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	19:02:11	lx	(4. palvelin)

closing socket '87'	1.	8.12.2021	19:02:11	lx	(4. palvelin)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	19:02:11	lx	(4. palvelin)

closing socket '88'	1.	8.12.2021	19:02:11	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            64544
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	19:02:11	lx	(4. palvelin)

--- server stopped ---.	8.12.2021	19:02:11	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01773c71e0.	8.12.2021	19:02:11	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	19:02:11	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	19:02:21	_lx_SERVER	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	19:02:23	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	19:02:23	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	19:02:23	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	19:02:23	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	19:02:23	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	19:02:23	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	8.12.2021	19:02:23	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	19:02:23	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	19:02:23	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	19:02:23	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0177d38870, size: 400.	8.12.2021	19:02:23	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	19:02:23	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	19:02:23	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	19:02:23	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	19:02:23	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	19:02:23	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	19:02:23	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	19:02:23	lx	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	19:02:23	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json.	8.12.2021	19:02:23	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	19:02:23	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	19:02:23	lx	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	19:02:23	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	19:02:23	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	19:02:23	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	19:02:23	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:02:23, used memory 2991.6 kb ---	5.	8.12.2021	19:02:23	lx	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1.	8.12.2021	19:02:23	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	19:02:54 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	19:02:54 	lx 	(4. palvelin)

closing socket '88'	1.	8.12.2021	19:02:54 	lx 	(4. palvelin)

*** tcp close for sock 89, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	19:02:54 	lx 	(4. palvelin)

closing socket '89'	1.	8.12.2021	19:02:54 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            2240
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	19:02:54 	lx 	(4. palvelin)

--- server stopped ---.	8.12.2021	19:02:54 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0177d38870.	8.12.2021	19:02:54 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	19:02:54 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	19:03:15 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	19:03:16 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds.	8.12.2021	19:03:16 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8eaed50, size: 400.	8.12.2021	19:03:16 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	19:03:16 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	19:03:16 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json.	8.12.2021	19:03:16 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:03:16, used memory 2995.6 kb ---	5.	8.12.2021	19:03:16 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1.	8.12.2021	19:03:16 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:04:15
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 504
Content-Uncompressed-Length: 584

LZ4.	8.12.2021	19:04:15 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	8.12.2021	19:04:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1.	8.12.2021	19:04:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	19:04:15 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1.	8.12.2021	19:04:15 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds.	8.12.2021	19:04:15 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1.	8.12.2021	19:04:15 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1.	8.12.2021	19:04:15 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};.	8.12.2021	19:04:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	19:04:15 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	19:07:03 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 89, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	19:07:03 	lx 	(4. palvelin)

closing socket '89'	1.	8.12.2021	19:07:03 	lx 	(4. palvelin)

*** tcp close for sock 90, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	19:07:03 	lx 	(4. palvelin)

closing socket '90'	1.	8.12.2021	19:07:03 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            15465
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   774
totalBytesSent:       0	1.	8.12.2021	19:07:03 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 93
	1.	8.12.2021	19:07:03 	lx 	(4. palvelin)

closing socket '93'	1.	8.12.2021	19:07:03 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 91
	1.	8.12.2021	19:07:03 	lx 	(4. palvelin)

closing socket '91'	1.	8.12.2021	19:07:03 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x02a8eaed50.	8.12.2021	19:07:03 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8eaed50, size: 400.	8.12.2021	19:07:03 	lx 	(4. palvelin)

--- server stopped ---.	8.12.2021	19:07:03 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8eaed50.	8.12.2021	19:07:03 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	19:07:03 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	19:07:15 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	19:07:16 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	19:07:16 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds.	8.12.2021	19:07:17 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8ead130, size: 400.	8.12.2021	19:07:17 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	19:07:17 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	19:07:17 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json.	8.12.2021	19:07:17 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-08 19:07:17, used memory 2995.7 kb ---	5.	8.12.2021	19:07:17 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1.	8.12.2021	19:07:17 	lx 	(4. palvelin)

*** tcp close for sock 93, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***	1.	8.12.2021	19:07:58 	lx 	(4. palvelin)

closing socket '93'	1.	8.12.2021	19:07:58 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	8.12.2021	19:11:03 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 90, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	19:11:03 	lx 	(4. palvelin)

closing socket '90'	1.	8.12.2021	19:11:03 	lx 	(4. palvelin)

*** tcp close for sock 91, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	8.12.2021	19:11:03 	lx 	(4. palvelin)

closing socket '91'	1.	8.12.2021	19:11:03 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            15832
pollInCount:          1
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   0
totalBytesSent:       0	1.	8.12.2021	19:11:03 	lx 	(4. palvelin)

--- server stopped ---.	8.12.2021	19:11:03 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8ead130.	8.12.2021	19:11:03 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu.	8.12.2021	19:11:03 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2.	8.12.2021	19:11:11 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/.	8.12.2021	19:11:12 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	19:11:12 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	8.12.2021	19:11:12 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	8.12.2021	19:11:12 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	19:11:12 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	8.12.2021	19:11:12 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds.	8.12.2021	19:11:12 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	8.12.2021	19:11:12 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	8.12.2021	19:11:12 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012e99ec50, size: 400.	8.12.2021	19:11:13 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	8.12.2021	19:11:13 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	8.12.2021	19:11:13 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

All plugins have been loaded	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json.	8.12.2021	19:11:13 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

Mac address: f84d896921dc	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)

--- server started in 0.001 seconds, 2021-12-08 19:11:13, used memory 3076.5 kb ---	5.	8.12.2021	19:11:13 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1.	8.12.2021	19:11:13 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:11:15
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 510
Content-Uncompressed-Length: 584

LZ4.	8.12.2021	19:11:15 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	8.12.2021	19:11:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1.	8.12.2021	19:11:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	19:11:15 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1.	8.12.2021	19:11:15 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds.	8.12.2021	19:11:15 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1.	8.12.2021	19:11:15 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1.	8.12.2021	19:11:15 	lx 	(4. palvelin)

querySql4d() param = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};.	8.12.2021	19:11:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	8.12.2021	19:11:15 	lx 	(4. palvelin)

*** tcp close for sock 94, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 780 bytes ***	1. 	8.12.2021 	19:12:59 	lx 	(4. palvelin)

closing socket '94'	1. 	8.12.2021 	19:12:59 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:15:48 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 91, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

closing socket '91'	1. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

*** tcp close for sock 93, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

closing socket '93'	1. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            18641
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   780
totalBytesSent:       0	1. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 96
	1. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

closing socket '96'	1. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x012e99ec50. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012e99ec50, size: 400. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x012e99ec50. 	8.12.2021 	19:15:48 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:15:48 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:15:54 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0154ce0a40, size: 400. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:15:55, used memory 2996.1 kb ---	5. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:15:55 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:16:04
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 502
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)

querySql4d() param = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:16:04 	lx 	(4. palvelin)

*** tcp close for sock 96, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 772 bytes ***	1. 	8.12.2021 	19:16:27 	lx 	(4. palvelin)

closing socket '96'	1. 	8.12.2021 	19:16:27 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:19:17 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 93, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

closing socket '93'	1. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

*** tcp close for sock 94, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

closing socket '94'	1. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            13841
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   772
totalBytesSent:       0	1. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 100
	1. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

closing socket '100'	1. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0154ce0a40. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0154ce0a40, size: 400. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0154ce0a40. 	8.12.2021 	19:19:17 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:19:17 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:19:19 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8ea5a60, size: 400. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:19:21, used memory 2996.4 kb ---	5. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:19:21 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:19:29
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 505
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:19:29 	lx 	(4. palvelin)

*** tcp close for sock 100, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 775 bytes ***	1. 	8.12.2021 	19:24:14 	lx 	(4. palvelin)

closing socket '100'	1. 	8.12.2021 	19:24:14 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:24:20 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	19:24:20 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:24:20 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:25:00 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 94, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

closing socket '94'	1. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

*** tcp close for sock 96, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

closing socket '96'	1. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          2
poll.fd_count:        2
pollCount:            23458
pollInCount:          3
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  5/3
totalBytesReceived:   1554
totalBytesSent:       0	1. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 100
	1. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

closing socket '100'	1. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 102
	1. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

closing socket '102'	1. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x02a8ea5a60. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8ea5a60, size: 400. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8ea5a60. 	8.12.2021 	19:25:00 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:25:00 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:25:03 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

physicalConnect organizationId: . 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

physicalConnect orgPref: . 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x016b04e120, size: 400. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:25:05, used memory 2996.6 kb ---	5. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:25:05 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:25:11
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 505
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

physicalConnect organizationId: . 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

physicalConnect orgPref: . 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

physicalConnect organizationId: . 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

physicalConnect orgPref: . 	8.12.2021 	19:25:11 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:27:14 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 96, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

closing socket '96'	1. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

*** tcp close for sock 100, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

closing socket '100'	1. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            8849
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   775
totalBytesSent:       0	1. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 108
	1. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

closing socket '108'	1. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 102
	1. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

closing socket '102'	1. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x016b04e120. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x016b04e120, size: 400. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x016b04e120. 	8.12.2021 	19:27:14 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:27:14 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:27:19 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

physicalConnect organizationId: . 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

physicalConnect orgPref: . 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e31460, size: 400. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:27:21, used memory 2996.7 kb ---	5. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:27:21 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:27:28
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 504
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

physicalConnect organizationId: . 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

physicalConnect orgPref: . 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

warning: Could not connect to database, preference 'plg4d-plg4d-0'
	1. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

physicalConnect organizationId: . 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

physicalConnect orgPref: . 	8.12.2021 	19:27:28 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:28:19 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 100, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

closing socket '100'	1. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

*** tcp close for sock 102, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

closing socket '102'	1. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            4017
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   774
totalBytesSent:       0	1. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 110
	1. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

closing socket '110'	1. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 108
	1. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

closing socket '108'	1. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x02a8e31460. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e31460, size: 400. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8e31460. 	8.12.2021 	19:28:19 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:28:19 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:29:03 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:29:04 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:29:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:29:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:29:05 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e5d61538', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:29:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:29:05 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e5d8f7f8'. 	8.12.2021 	19:29:05 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:29:05 	lx 	(4. palvelin)

  database connect time: 0.0007 seconds. 	8.12.2021 	19:29:05 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:29:05 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:29:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:29:06 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01790bc520, size: 400. 	8.12.2021 	19:29:07 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:29:07 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:29:07 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:29:07 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:29:07 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

--- server started in 0.077 seconds, 2021-12-08 19:29:08, used memory 2996.7 kb ---	5. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:29:08 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:29:17
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 498
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e6011d00', organizationId: 'demo-4d-0'. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e5d9e868'. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

warning: Could not connect to database, preference 'plg4d-plg4d-0'
	1. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e5cbc730', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e5d418a8'. 	8.12.2021 	19:29:17 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:31:21 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 102, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

closing socket '102'	1. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

*** tcp close for sock 108, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

closing socket '108'	1. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            9137
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   768
totalBytesSent:       0	1. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 112
	1. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

closing socket '112'	1. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 110
	1. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

closing socket '110'	1. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01790bc520. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01790bc520, size: 400. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01790bc520. 	8.12.2021 	19:31:21 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:31:21 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:31:27 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* driver: 'postgre', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e6a4c198', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e6a89538'. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e4cb70, size: 400. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:31:28, used memory 3071.3 kb ---	5. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:31:28 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:31:32
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 497
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

* driver: 'rest4d', organizationId: 'demo-4d-0'. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e6b96f38', organizationId: 'demo-4d-0'. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e6ab6d40'. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

* driver: 'plg4d', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

warning: Could not connect to database, preference 'plg4d-plg4d-0'
	1. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e69a86a8', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e6adebd8'. 	8.12.2021 	19:31:32 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:34:33 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 108, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

closing socket '108'	1. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

*** tcp close for sock 110, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

closing socket '110'	1. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            12561
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   767
totalBytesSent:       0	1. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 114
	1. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

closing socket '114'	1. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 112
	1. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

closing socket '112'	1. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x02a8e4cb70. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e4cb70, size: 400. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8e4cb70. 	8.12.2021 	19:34:33 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:34:33 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:36:49 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* driver: 'postgre', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e7047e78', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e6f7dce0'. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0149757c00, size: 400. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

--- server started in 0.004 seconds, 2021-12-08 19:36:51, used memory 2996.8 kb ---	5. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:36:51 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:36:58
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 503
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

* driver: 'rest4d', organizationId: 'demo-4d-0'. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e7a127d0', organizationId: 'demo-4d-0'. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e6fec980'. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

* driver: 'plg4d', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	19:36:58 	lx 	(4. palvelin)

*** tcp close for sock 114, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 773 bytes ***	1. 	8.12.2021 	19:37:22 	lx 	(4. palvelin)

closing socket '114'	1. 	8.12.2021 	19:37:22 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:38:52 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 110, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

closing socket '110'	1. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

*** tcp close for sock 112, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

closing socket '112'	1. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            8321
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   773
totalBytesSent:       0	1. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 116
	1. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

closing socket '116'	1. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0149757c00. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0149757c00, size: 400. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0149757c00. 	8.12.2021 	19:38:52 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:38:52 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:38:57 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* driver: 'postgre', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e7c6b148', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e7cc5a28'. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e74670, size: 400. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:38:58, used memory 2996.6 kb ---	5. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:38:58 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:39:05
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 509
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

* driver: 'rest4d', organizationId: 'demo-4d-0'. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e7eea520', organizationId: 'demo-4d-0'. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02e7cab820'. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

* driver: 'plg4d', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	19:39:05 	lx 	(4. palvelin)

*** tcp close for sock 116, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 779 bytes ***	1. 	8.12.2021 	19:39:10 	lx 	(4. palvelin)

closing socket '116'	1. 	8.12.2021 	19:39:10 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:41:08 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 112, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

closing socket '112'	1. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

*** tcp close for sock 114, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

closing socket '114'	1. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            8913
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   779
totalBytesSent:       0	1. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 118
	1. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

closing socket '118'	1. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x02a8e74670. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e74670, size: 400. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8e74670. 	8.12.2021 	19:41:08 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:41:08 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:42:08 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02e886b420', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02eb25b660'. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0178f85050, size: 400. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:42:10, used memory 2996.5 kb ---	5. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:42:10 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:42:17
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 509
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02eb558fc0', organizationId: 'demo-4d-0'. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02eb281fd0'. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:42:17 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:45:40 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 114, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

closing socket '114'	1. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

*** tcp close for sock 116, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

closing socket '116'	1. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            14561
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   779
totalBytesSent:       0	1. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 120
	1. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

closing socket '120'	1. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 118
	1. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

closing socket '118'	1. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0178f85050. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0178f85050, size: 400. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0178f85050. 	8.12.2021 	19:45:40 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:45:40 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:45:48 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02eb61ce00', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02eebb8af0'. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x016b0990d0, size: 400. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:45:50, used memory 2996.8 kb ---	5. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:45:50 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:45:54
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 504
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x02eee1cda0', organizationId: 'demo-4d-0'. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x02eb6206a0'. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	19:45:54 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:50:29 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 116, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

closing socket '116'	1. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

*** tcp close for sock 118, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

closing socket '118'	1. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            19681
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   774
totalBytesSent:       0	1. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 122
	1. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

closing socket '122'	1. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 120
	1. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

closing socket '120'	1. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x016b0990d0. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x016b0990d0, size: 400. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x016b0990d0. 	8.12.2021 	19:50:29 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:50:29 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:50:47 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0309823d90', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x03098a6dc0'. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e95630, size: 400. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:50:49, used memory 2997.2 kb ---	5. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:50:49 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:50:55
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 499
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0309b1cad0', organizationId: 'demo-4d-0'. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x0309874390'. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:50:55 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:51:46 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 118, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

closing socket '118'	1. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

*** tcp close for sock 120, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

closing socket '120'	1. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            3985
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   769
totalBytesSent:       0	1. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 124
	1. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

closing socket '124'	1. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 122
	1. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

closing socket '122'	1. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x02a8e95630. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e95630, size: 400. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8e95630. 	8.12.2021 	19:51:46 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:51:46 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:51:53 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0309d21278', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x0309d560c0'. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011e93a4d0, size: 400. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:51:54, used memory 2997.4 kb ---	5. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:51:54 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:52:03
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 496
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x030a000ed0', organizationId: 'demo-4d-0'. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x0309d8edb8'. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

querySql4d() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

querySql4d() auth.setCurrentOrganization = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

querySql4d() dsql.setConnection = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	19:52:03 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:54:51 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 120, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

closing socket '120'	1. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

*** tcp close for sock 122, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

closing socket '122'	1. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            12041
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   766
totalBytesSent:       0	1. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 126
	1. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

closing socket '126'	1. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 124
	1. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

closing socket '124'	1. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x011e93a4d0. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011e93a4d0, size: 400. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x011e93a4d0. 	8.12.2021 	19:54:51 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:54:51 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:55:27 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:55:28 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:55:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:55:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:55:28 	lx 	(4. palvelin)

loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	19:55:28 	lx 	(4. palvelin)

connect() = {};. 	8.12.2021 	19:55:28 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0336296140', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x0336292938'. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

  database connect time: 0.0010 seconds. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

connect() 2 = {
 ["organization_id"] = "demo-fi_demo-0";
 ["database"] = "fi_demo";
 ["database_id"] = "fi_demo";
 ["connected"] = "2021-12-08 19:55:29";
 ["database_user"] = "manage_demo";
 ["port"] = "";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["is_local"] = true;
 ["dbtype"] = "postgre";
 ["timeout"] = 120;
 ["schema"] = "";
 ["name"] = "postgre local socket";
 ["driver"] = "postgre";
 ["host"] = "/tmp";
};. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01790d37e0, size: 400. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

--- server started in 0.005 seconds, 2021-12-08 19:55:29, used memory 2997.8 kb ---	5. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:55:29 	lx 	(4. palvelin)

Tcp palvelin 2 on jo käynnissä. 	8.12.2021 	19:55:30 	_lx_SERVER 	(5. tbl_ 4)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:55:36
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 508
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

connect() = {};. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0336312c50', organizationId: 'demo-4d-0'. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x0336236438'. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

connect() 2 = {
 ["organization_id"] = "demo-4d-0";
 ["database"] = "4d";
 ["database_id"] = "4d";
 ["connected"] = "2021-12-08 19:55:36";
 ["port"] = 5949;
 ["info"] = "Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["database_user"] = "manage_demo";
 ["schema"] = "4d";
 ["timeout"] = 120;
 ["name"] = "Manageri v12 rest4d local";
 ["dbtype"] = "4d";
 ["driver"] = "rest4d";
 ["host"] = "127.0.0.1";
};. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

querySql4d() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

querySql4d() auth.setCurrentOrganization = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

querySql4d() dsql.setConnection = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

connect() = {};. 	8.12.2021 	19:55:36 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	19:56:34 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 122, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

closing socket '122'	1. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

*** tcp close for sock 124, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

closing socket '124'	1. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            4401
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   778
totalBytesSent:       0	1. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 128
	1. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

closing socket '128'	1. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 126
	1. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

closing socket '126'	1. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01790d37e0. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01790d37e0, size: 400. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01790d37e0. 	8.12.2021 	19:56:34 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	19:56:34 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	19:58:00 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

parameter = "nil". 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

currentAuthTbl = {};. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

connect() = {};. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x033a6c3518', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x033a792ca0'. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

connect() 2 = {
 ["timeout"] = 120;
 ["name"] = "postgre local socket";
 ["database"] = "fi_demo";
 ["connected"] = "2021-12-08 19:58:01";
 ["database_user"] = "manage_demo";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["host"] = "/tmp";
 ["organization_id"] = "demo-fi_demo-0";
 ["port"] = "";
 ["schema"] = "";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
};. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01790f5850, size: 400. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 19:58:01, used memory 3056.8 kb ---	5. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	19:58:01 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 19:58:07
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 515
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

parameter = {
 ["organizationId"] = "demo-4d-0";
};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

currentAuthTbl = {
 ["organization_id"] = "demo-4d-0";
 ["database"] = "4d";
 ["organization_text"] = "4D";
 ["show"] = "Demo 4D";
 ["connection"] = "rest4d";
 ["is_local"] = true;
 ["status"] = "active";
 ["organization_number"] = 0;
 ["login_id"] = "pasi";
 ["language"] = "fi_fi";
 ["redirect"] = {
  [1] = "4d";
  [2] = "default";
 };
 ["schema"] = "4d";
 ["valid_until"] = "2021-12-08 20:58:09";
 ["alias_id"] = "4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

connect() = {};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x033a83e628', organizationId: 'demo-4d-0'. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x033a6dcde0'. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

connect() 2 = {
 ["timeout"] = 120;
 ["name"] = "Manageri v12 rest4d local";
 ["host"] = "127.0.0.1";
 ["connected"] = "2021-12-08 19:58:07";
 ["database_user"] = "manage_demo";
 ["info"] = "Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo";
 ["connection_timeout"] = 1;
 ["database_id"] = "4d";
 ["database"] = "4d";
 ["organization_id"] = "demo-4d-0";
 ["port"] = 5949;
 ["schema"] = "4d";
 ["password"] = "";
 ["dbtype"] = "4d";
 ["driver"] = "rest4d";
};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

querySql4d() auth.setCurrentOrganization = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

querySql4d() dsql.setConnection = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

parameter = {
 ["reason"] = "auth";
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

currentAuthTbl = {
 ["organization_id"] = "plg4d-plg4d-0";
 ["database"] = "plg4d";
 ["organization_text"] = "0";
 ["show"] = "plg4d plugin 4d";
 ["connection"] = "plg4d";
 ["is_local"] = true;
 ["status"] = "inactive";
 ["organization_number"] = 0;
 ["login_id"] = "pasi";
 ["language"] = "fi_fi";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["valid_until"] = "2021-12-08 20:58:09";
 ["alias_id"] = "4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

connect() = {};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

plg4d connPref = {
 ["port"] = "";
 ["dbtype"] = "4d";
 ["connection"] = {
  [1] = {
   ["host"] = "";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
 ["sql_lower"] = false;
 ["driver"] = "plg4d";
};. 	8.12.2021 	19:58:07 	lx 	(4. palvelin)

Tcp palvelin 2 on jo käynnissä. 	8.12.2021 	20:10:48 	_lx_SERVER 	(5. tbl_ 4)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	20:10:52 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 124, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

closing socket '124'	1. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

*** tcp close for sock 126, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

closing socket '126'	1. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            54921
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   785
totalBytesSent:       0	1. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 130
	1. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

closing socket '130'	1. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 128
	1. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

closing socket '128'	1. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01790f5850. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01790f5850, size: 400. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01790f5850. 	8.12.2021 	20:10:53 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	20:10:53 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	20:10:58 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = 5432;
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/tmp";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/var/run/postgresql";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
};. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x033ecd89e0', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x033ecaa4a0'. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["name"] = "postgre local socket";
 ["connected"] = "2021-12-08 20:10:59";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["host"] = "/tmp";
 ["port"] = "";
 ["database_user"] = "manage_demo";
 ["timeout"] = 120;
 ["schema"] = "";
 ["dbtype"] = "postgre";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["driver"] = "postgre";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["database"] = "fi_demo";
 ["organization_id"] = "demo-fi_demo-0";
};. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015788d090, size: 400. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

--- server started in 0.001 seconds, 2021-12-08 20:10:59, used memory 3020.2 kb ---	5. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	20:10:59 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 20:11:04
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 518
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "demo-4d-0";
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["redirect"] = {
  [1] = "4d";
  [2] = "default";
 };
 ["organization_number"] = 0;
 ["organization_id"] = "demo-4d-0";
 ["language"] = "fi_fi";
 ["status"] = "active";
 ["database"] = "4d";
 ["valid_until"] = "2021-12-08 21:11:06";
 ["schema"] = "4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["connection"] = "rest4d";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["organization_text"] = "4D";
 ["login_id"] = "pasi";
 ["show"] = "Demo 4D";
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-4d-0'. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = 5949;
 ["dbtype"] = "4d";
 ["driver"] = "rest4d";
 ["timeout"] = 120;
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 rest4d local";
   ["host"] = "127.0.0.1";
  };
  [2] = {
   ["name"] = "Manageri v12 rest4d .32.5";
   ["host"] = "192.168.32.5";
  };
  [3] = {
   ["name"] = "Manageri v12 rest4d .0.33 aMac";
   ["host"] = "192.168.0.33";
  };
  [4] = {
   ["name"] = "Manageri v12 rest4d local ssh";
   ["host"] = "127.0.0.1";
   ["disabled"] = true;
   ["port"] = 5659;
  };
  [5] = {
   ["name"] = "Manageri v12 rest4d srv stunnel";
   ["port"] = 49200;
   ["disabled"] = true;
   ["host"] = "127.0.0.1";
  };
  [6] = {
   ["name"] = "Manageri v12 .0.2";
   ["host"] = "192.168.0.2";
  };
  [7] = {
   ["name"] = "Manageri v12 rest4d srv .32.3";
   ["host"] = "192.168.32.3";
  };
 };
 ["sql_lower"] = false;
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x033eec7b78', organizationId: 'plg4d'. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

physicalConnect orgPref: 'nil'. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["name"] = "Manageri v12 rest4d local";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["timeout"] = 120;
 ["connected"] = "2021-12-08 20:11:04";
 ["info"] = "Manageri v12 rest4d local, 127.0.0.1:5949, database: fi_demo, user: manage_demo";
 ["organization_id"] = "plg4d";
 ["database_user"] = "manage_demo";
 ["dbtype"] = "4d";
 ["driver"] = "rest4d";
 ["port"] = 5949;
 ["database_id"] = "fi_demo";
 ["database"] = "fi_demo";
 ["host"] = "127.0.0.1";
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

querySql4d() auth.setCurrentOrganization = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

querySql4d() dsql.setConnection = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
 ["reason"] = "auth";
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["database"] = "plg4d";
 ["redirect"] = {
  [1] = "default";
 };
 ["organization_number"] = 0;
 ["organization_id"] = "plg4d-plg4d-0";
 ["language"] = "fi_fi";
 ["status"] = "inactive";
 ["valid_until"] = "2021-12-08 21:11:06";
 ["schema"] = "4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["connection"] = "plg4d";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["organization_text"] = "0";
 ["login_id"] = "pasi";
 ["show"] = "plg4d plugin 4d";
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = "";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "";
  };
 };
 ["sql_lower"] = false;
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

plg4d connPref = {
 ["port"] = "";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "";
  };
 };
 ["sql_lower"] = false;
};. 	8.12.2021 	20:11:04 	lx 	(4. palvelin)

*** tcp close for sock 130, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 788 bytes ***	1. 	8.12.2021 	20:11:17 	lx 	(4. palvelin)

closing socket '130'	1. 	8.12.2021 	20:11:17 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	20:19:55 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 126, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

closing socket '126'	1. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

*** tcp close for sock 128, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

closing socket '128'	1. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            38449
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   788
totalBytesSent:       0	1. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 132
	1. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

closing socket '132'	1. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x015788d090. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015788d090, size: 400. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x015788d090. 	8.12.2021 	20:19:55 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	20:19:55 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 ei ole käynnissä. 	8.12.2021 	20:22:55 	_lx_SERVER 	(5. tbl_ 4)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	20:23:02 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["port"] = 5432;
 ["connection"] = {
  [1] = {
   ["port"] = "";
   ["host"] = "/tmp";
   ["name"] = "postgre local socket";
  };
  [2] = {
   ["port"] = "";
   ["host"] = "/var/run/postgresql";
   ["name"] = "postgre local socket";
  };
  [3] = {
   ["host"] = "127.0.0.1";
   ["name"] = "postgre local";
  };
  [4] = {
   ["host"] = "host.lima.internal";
   ["name"] = "postgre lima host";
  };
  [5] = {
   ["host"] = "192.168.0.2";
   ["name"] = "postgre .0.2";
  };
  [6] = {
   ["host"] = "192.168.32.5";
   ["name"] = "postgre .32.5";
  };
  [7] = {
   ["host"] = "192.168.32.7";
   ["name"] = "postgre .32.7";
  };
 };
};. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x03430a7e60', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x03431c49c0'. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["schema"] = "";
 ["connected"] = "2021-12-08 20:23:03";
 ["port"] = "";
 ["organization_id"] = "demo-fi_demo-0";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["database"] = "fi_demo";
 ["name"] = "postgre local socket";
 ["host"] = "/tmp";
 ["timeout"] = 120;
 ["connection_timeout"] = 1;
 ["database_user"] = "manage_demo";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["password"] = "";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
};. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0173eb92f0, size: 400. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-08 20:23:03, used memory 2998.5 kb ---	5. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	20:23:03 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 20:23:10
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 505
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "demo-4d-0";
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["organization_number"] = 0;
 ["connection"] = "rest4d";
 ["redirect"] = {
  [1] = "4d";
  [2] = "default";
 };
 ["language"] = "fi_fi";
 ["schema"] = "4d";
 ["organization_id"] = "demo-4d-0";
 ["database"] = "4d";
 ["valid_until"] = "2021-12-08 21:23:12";
 ["show"] = "Demo 4D";
 ["status"] = "active";
 ["organization_text"] = "4D";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["login_id"] = "pasi";
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-4d-0'. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["timeout"] = 120;
 ["port"] = 5949;
 ["dbtype"] = "4d";
 ["driver"] = "rest4d";
 ["connection"] = {
  [1] = {
   ["host"] = "127.0.0.1";
   ["name"] = "Manageri v12 rest4d local";
  };
  [2] = {
   ["host"] = "192.168.32.5";
   ["name"] = "Manageri v12 rest4d .32.5";
  };
  [3] = {
   ["host"] = "192.168.0.33";
   ["name"] = "Manageri v12 rest4d .0.33 aMac";
  };
  [4] = {
   ["disabled"] = true;
   ["host"] = "127.0.0.1";
   ["port"] = 5659;
   ["name"] = "Manageri v12 rest4d local ssh";
  };
  [5] = {
   ["disabled"] = true;
   ["port"] = 49200;
   ["host"] = "127.0.0.1";
   ["name"] = "Manageri v12 rest4d srv stunnel";
  };
  [6] = {
   ["host"] = "192.168.0.2";
   ["name"] = "Manageri v12 .0.2";
  };
  [7] = {
   ["host"] = "192.168.32.3";
   ["name"] = "Manageri v12 rest4d srv .32.3";
  };
 };
 ["sql_lower"] = false;
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0343511ad0', organizationId: 'demo-4d-0'. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x03431c5ec0'. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["schema"] = "4d";
 ["connected"] = "2021-12-08 20:23:10";
 ["port"] = 5949;
 ["dbtype"] = "4d";
 ["driver"] = "rest4d";
 ["database"] = "4d";
 ["name"] = "Manageri v12 rest4d local";
 ["info"] = "Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo";
 ["timeout"] = 120;
 ["organization_id"] = "demo-4d-0";
 ["password"] = "";
 ["database_user"] = "manage_demo";
 ["connection_timeout"] = 1;
 ["host"] = "127.0.0.1";
 ["database_id"] = "4d";
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

querySql4d() param 1 = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

querySql4d() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

querySql4d() auth.setCurrentOrganization = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

querySql4d() dsql.setConnection = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
 ["reason"] = "auth";
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["organization_number"] = 0;
 ["connection"] = "plg4d";
 ["redirect"] = {
  [1] = "default";
 };
 ["language"] = "fi_fi";
 ["schema"] = "4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["database"] = "plg4d";
 ["valid_until"] = "2021-12-08 21:23:12";
 ["show"] = "plg4d plugin 4d";
 ["status"] = "inactive";
 ["organization_text"] = "0";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["login_id"] = "pasi";
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = "";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["host"] = "";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
 ["sql_lower"] = false;
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

plg4d connPref = {
 ["port"] = "";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["host"] = "";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
 ["sql_lower"] = false;
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["organization_number"] = 0;
 ["connection"] = "plg4d";
 ["login_id"] = "pasi";
 ["is_local"] = true;
 ["schema"] = "4d";
 ["database"] = "plg4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["valid_until"] = "2021-12-08 21:23:12";
 ["language"] = "fi_fi";
 ["status"] = "inactive";
 ["organization_id"] = "plg4d-plg4d-0";
 ["show"] = "plg4d plugin 4d";
 ["alias_id"] = "4d";
 ["organization_text"] = "0";
 ["redirect"] = {
  [1] = "default";
 };
};. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)


error: connection database 'plg4d' was not found from auth preference
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:483: in function 'updateConnRec'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:914: in function 'connection'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:724: in function 'setAuthAndRedirect'
	/Users/pasi/nc/nc-server/lib/db/dsql.lua:329: in function 'setConnection'
	/Users/pasi/nc/nc-server/nc/worker/query4d_worker.lua:69: in function 'func'
	/Users/pasi/nc/nc-server/lib/rest.lua:424: in function 'jsonValue'
	/Users/pasi/nc/nc-server/lib/rest.lua:505: in function 'createPostAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:615: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	8.12.2021 	20:23:10 	lx 	(4. palvelin)

error: connection database 'plg4d' was not found from auth preference
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:483: in function 'updateConnRec'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:914: in function 'connection'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:724: in function 'setAuthAndRedirect'
	/Users/pasi/nc/nc-server/lib/db/dsql.lua:329: in function 'setConnection'
	/Users/pasi/nc/nc-server/nc/worker/query4d_worker.lua:69: in function 'func'
	/Users/pasi/nc/nc-server/lib/rest.lua:424: in function 'jsonValue'
	/Users/pasi/nc/nc-server/lib/rest.lua:505: in function 'createPostAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:615: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	8.12.2021 	20:23:10 	_lx_SERVER 	(4. palvelin)

*** tcp close for sock 132, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 775 bytes ***	1. 	8.12.2021 	20:23:21 	lx 	(4. palvelin)

closing socket '132'	1. 	8.12.2021 	20:23:21 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	20:39:45 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 128, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

closing socket '128'	1. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

*** tcp close for sock 130, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

closing socket '130'	1. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            70601
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   775
totalBytesSent:       0	1. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 134
	1. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

closing socket '134'	1. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0173eb92f0. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0173eb92f0, size: 400. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0173eb92f0. 	8.12.2021 	20:39:45 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	20:39:45 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	20:39:49 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["host"] = "/tmp";
   ["port"] = "";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["host"] = "/var/run/postgresql";
   ["port"] = "";
  };
  [3] = {
   ["host"] = "127.0.0.1";
   ["name"] = "postgre local";
  };
  [4] = {
   ["host"] = "host.lima.internal";
   ["name"] = "postgre lima host";
  };
  [5] = {
   ["host"] = "192.168.0.2";
   ["name"] = "postgre .0.2";
  };
  [6] = {
   ["host"] = "192.168.32.5";
   ["name"] = "postgre .32.5";
  };
  [7] = {
   ["host"] = "192.168.32.7";
   ["name"] = "postgre .32.7";
  };
 };
 ["port"] = 5432;
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
};. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x03475e1ab8', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x034763cf30'. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["connected"] = "2021-12-08 20:39:51";
 ["timeout"] = 120;
 ["host"] = "/tmp";
 ["organization_id"] = "demo-fi_demo-0";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["database_user"] = "manage_demo";
 ["database"] = "fi_demo";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["schema"] = "";
 ["name"] = "postgre local socket";
 ["port"] = "";
 ["dbtype"] = "postgre";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["driver"] = "postgre";
};. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01790590a0, size: 400. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 20:39:51, used memory 2998.3 kb ---	5. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	20:39:51 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 20:43:19
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 497
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["redirect"] = {
  [1] = "default";
 };
 ["language"] = "fi_fi";
 ["organization_id"] = "plg4d-plg4d-0";
 ["connection"] = "plg4d";
 ["show"] = "plg4d plugin 4d";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["database"] = "plg4d";
 ["organization_number"] = 0;
 ["status"] = "inactive";
 ["organization_text"] = "0";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["valid_until"] = "2021-12-08 21:43:21";
 ["login_id"] = "pasi";
 ["schema"] = "4d";
};. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:43:19 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["dbtype"] = "4d";
 ["sql_lower"] = false;
 ["connection"] = {
  [1] = {
   ["host"] = "";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
 ["driver"] = "plg4d";
 ["port"] = "";
};. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)

plg4d connPref = {
 ["dbtype"] = "4d";
 ["sql_lower"] = false;
 ["connection"] = {
  [1] = {
   ["host"] = "";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
 ["driver"] = "plg4d";
 ["port"] = "";
};. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["redirect"] = {
  [1] = "default";
 };
 ["language"] = "fi_fi";
 ["organization_id"] = "plg4d-plg4d-0";
 ["connection"] = "plg4d";
 ["show"] = "plg4d plugin 4d";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["database"] = "plg4d";
 ["organization_number"] = 0;
 ["status"] = "inactive";
 ["schema"] = "4d";
 ["login_id"] = "pasi";
 ["valid_until"] = "2021-12-08 21:43:21";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["organization_text"] = "0";
};. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)


error: connection database 'plg4d' was not found from auth preference
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:483: in function 'updateConnRec'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:908: in function 'connection'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:813: in function 'setCurrentOrganization'
	/Users/pasi/nc/nc-server/lib/auth.lua:419: in function 'authenticate'
	/Users/pasi/nc/nc-server/lib/rest.lua:410: in function 'jsonValue'
	/Users/pasi/nc/nc-server/lib/rest.lua:505: in function 'createPostAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:615: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	8.12.2021 	20:43:19 	lx 	(4. palvelin)

error: connection database 'plg4d' was not found from auth preference
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:483: in function 'updateConnRec'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:908: in function 'connection'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:813: in function 'setCurrentOrganization'
	/Users/pasi/nc/nc-server/lib/auth.lua:419: in function 'authenticate'
	/Users/pasi/nc/nc-server/lib/rest.lua:410: in function 'jsonValue'
	/Users/pasi/nc/nc-server/lib/rest.lua:505: in function 'createPostAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:615: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	8.12.2021 	20:43:19 	_lx_SERVER 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	20:51:16 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 130, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

closing socket '130'	1. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

*** tcp close for sock 132, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

closing socket '132'	1. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            47529
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   767
totalBytesSent:       0	1. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 134
	1. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

closing socket '134'	1. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01790590a0. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01790590a0, size: 400. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01790590a0. 	8.12.2021 	20:51:16 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	20:51:16 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	20:51:19 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "postgre";
 ["port"] = 5432;
 ["connection"] = {
  [1] = {
   ["host"] = "/tmp";
   ["name"] = "postgre local socket";
   ["port"] = "";
  };
  [2] = {
   ["host"] = "/var/run/postgresql";
   ["name"] = "postgre local socket";
   ["port"] = "";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["dbtype"] = "postgre";
};. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x034bb88e18', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x034bb46ec8'. 	8.12.2021 	20:51:20 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

  database connect time: 0.0015 seconds. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["connected"] = "2021-12-08 20:51:21";
 ["port"] = "";
 ["name"] = "postgre local socket";
 ["connection_timeout"] = 1;
 ["driver"] = "postgre";
 ["host"] = "/tmp";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["database"] = "fi_demo";
 ["timeout"] = 120;
 ["organization_id"] = "demo-fi_demo-0";
 ["schema"] = "";
 ["database_user"] = "manage_demo";
 ["password"] = "";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["dbtype"] = "postgre";
};. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0173c09670, size: 400. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-08 20:51:21, used memory 2998.5 kb ---	5. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	20:51:21 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 20:51:26
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 507
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

use plg4d, orgId: %s, orgIdFull: %s	demo-4d-0	demo-4d-0. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

warning: organization id 'demo-4d-0' was not found, call:
stack traceback:
	/Users/pasi/nc/nc-server/lib/auth.lua:295: in function 'setCurrentOrganization'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:808: in function 'setCurrentOrganization'
	/Users/pasi/nc/nc-server/lib/auth.lua:419: in function 'authenticate'
	/Users/pasi/nc/nc-server/lib/rest.lua:410: in function 'jsonValue'
	/Users/pasi/nc/nc-server/lib/rest.lua:505: in function 'createPostAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:615: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>
	1. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "";
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["organization_id"] = "";
 ["language"] = "fi_fi";
 ["valid_until"] = "2021-12-08 21:51:27";
 ["connection"] = "rest4d";
 ["status"] = "active";
 ["show"] = "Demo 4D";
 ["database"] = "4d";
 ["organization_text"] = "4D";
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["login_id"] = "pasi";
 ["organization_number"] = 0;
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = {
 ["host"] = "/tmp";
 ["name"] = "postgre local socket";
 ["connected"] = "2021-12-08 20:51:21";
 ["connection"] = "postgre-demo";
 ["database_id"] = "fi_demo";
 ["port"] = "";
 ["sql"] = {
  ["whereArrUsedTable"] = {};
  ["orderArr"] = {};
  ["offset"] = -1;
  ["selectArr"] = {};
  ["selectArrUsed"] = {};
  ["joinArr"] = {};
  ["insertArr"] = {};
  ["updateArr"] = {};
  ["whereArr"] = {};
  ["fromArrUsed"] = {};
  ["fromArrUsedTable"] = {};
  ["fromArr"] = {};
  ["orderArrUsedTable"] = {};
  ["limit"] = -1;
 };
 ["connection_timeout"] = 1;
 ["driver"] = "postgre";
 ["database_user"] = "manage_demo";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["database"] = "fi_demo";
 ["timeout"] = 120;
 ["query"] = {
  ["queryNameFunc"] = "function: 0x034bb78cb0, defined in (137-139)@/Users/pasi/nc/nc-server/lib/db/dsql.lua";
  ["setStart"] = {};
  ["setEnd"] = {};
  ["extraJoinArr"] = {};
  ["queryText"] = "";
  ["queryArr"] = {};
  ["deleteArr"] = {};
  ["saveArr"] = {};
  ["queryCount"] = 0;
 };
 ["schema"] = "";
 ["dbtype"] = "postgre";
 ["password"] = "";
 ["is_local"] = true;
 ["organization_id"] = "demo-fi_demo-0";
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

querySql4d() param 1 = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

querySql4d() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

querySql4d() auth.setCurrentOrganization = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

querySql4d() dsql.setConnection = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
 ["reason"] = "auth";
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["organization_id"] = "plg4d-plg4d-0";
 ["language"] = "fi_fi";
 ["valid_until"] = "2021-12-08 21:51:27";
 ["connection"] = "plg4d";
 ["status"] = "inactive";
 ["show"] = "plg4d plugin 4d";
 ["database"] = "plg4d";
 ["organization_text"] = "0";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["login_id"] = "pasi";
 ["organization_number"] = 0;
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = "";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["sql_lower"] = false;
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

plg4d connPref = {
 ["port"] = "";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["sql_lower"] = false;
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["organization_id"] = "plg4d-plg4d-0";
 ["language"] = "fi_fi";
 ["valid_until"] = "2021-12-08 21:51:27";
 ["organization_number"] = 0;
 ["login_id"] = "pasi";
 ["schema"] = "4d";
 ["database"] = "plg4d";
 ["alias_id"] = "4d";
 ["redirect"] = {
  [1] = "default";
 };
 ["status"] = "inactive";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["connection"] = "plg4d";
 ["is_local"] = true;
 ["show"] = "plg4d plugin 4d";
 ["organization_text"] = "0";
};. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)


error: connection database '%s' was not found from auth preference
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:483: in function 'updateConnRec'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:908: in function 'connection'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:724: in function 'setAuthAndRedirect'
	/Users/pasi/nc/nc-server/lib/db/dsql.lua:329: in function 'setConnection'
	/Users/pasi/nc/nc-server/nc/worker/query4d_worker.lua:69: in function 'func'
	/Users/pasi/nc/nc-server/lib/rest.lua:424: in function 'jsonValue'
	/Users/pasi/nc/nc-server/lib/rest.lua:505: in function 'createPostAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:615: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	8.12.2021 	20:51:26 	lx 	(4. palvelin)

error: connection database '%s' was not found from auth preference
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:483: in function 'updateConnRec'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:908: in function 'connection'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:724: in function 'setAuthAndRedirect'
	/Users/pasi/nc/nc-server/lib/db/dsql.lua:329: in function 'setConnection'
	/Users/pasi/nc/nc-server/nc/worker/query4d_worker.lua:69: in function 'func'
	/Users/pasi/nc/nc-server/lib/rest.lua:424: in function 'jsonValue'
	/Users/pasi/nc/nc-server/lib/rest.lua:505: in function 'createPostAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:615: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	8.12.2021 	20:51:26 	_lx_SERVER 	(4. palvelin)

*** tcp close for sock 135, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 777 bytes ***	1. 	8.12.2021 	20:51:39 	lx 	(4. palvelin)

closing socket '135'	1. 	8.12.2021 	20:51:39 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	20:59:47 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 132, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:59:47 	lx 	(4. palvelin)

closing socket '132'	1. 	8.12.2021 	20:59:47 	lx 	(4. palvelin)

*** tcp close for sock 134, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	20:59:47 	lx 	(4. palvelin)

closing socket '134'	1. 	8.12.2021 	20:59:47 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        0
pollCount:            35217
pollInCount:          1
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   777
totalBytesSent:       0	1. 	8.12.2021 	20:59:47 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	20:59:47 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0173c09670. 	8.12.2021 	20:59:47 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	20:59:47 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	20:59:50 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "postgre";
 ["port"] = 5432;
 ["connection"] = {
  [1] = {
   ["port"] = "";
   ["name"] = "postgre local socket";
   ["host"] = "/tmp";
  };
  [2] = {
   ["port"] = "";
   ["name"] = "postgre local socket";
   ["host"] = "/var/run/postgresql";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["dbtype"] = "postgre";
};. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0358062d90', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x0358064de0'. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["connected"] = "2021-12-08 20:59:52";
 ["is_local"] = true;
 ["schema"] = "";
 ["port"] = "";
 ["timeout"] = 120;
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["dbtype"] = "postgre";
 ["organization_id"] = "demo-fi_demo-0";
 ["driver"] = "postgre";
 ["connection_timeout"] = 1;
 ["host"] = "/tmp";
 ["database"] = "fi_demo";
 ["password"] = "";
 ["database_id"] = "fi_demo";
 ["name"] = "postgre local socket";
 ["database_user"] = "manage_demo";
};. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0176c430c0, size: 400. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 20:59:52, used memory 2998.5 kb ---	5. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	20:59:52 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 21:00:04
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 502
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["alias_id"] = "4d";
 ["status"] = "inactive";
 ["schema"] = "4d";
 ["organization_number"] = 0;
 ["connection"] = "plg4d";
 ["valid_until"] = "2021-12-08 22:00:06";
 ["organization_id"] = "plg4d-plg4d-0";
 ["language"] = "fi_fi";
 ["redirect"] = {
  [1] = "default";
 };
 ["organization_text"] = "0";
 ["database"] = "plg4d";
 ["is_local"] = true;
 ["login_id"] = "pasi";
 ["show"] = "plg4d plugin 4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
};. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:00:04 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "plg4d";
 ["sql_lower"] = false;
 ["port"] = "";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["dbtype"] = "4d";
};. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)

plg4d connPref = {
 ["driver"] = "plg4d";
 ["sql_lower"] = false;
 ["port"] = "";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["dbtype"] = "4d";
};. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["alias_id"] = "4d";
 ["status"] = "inactive";
 ["schema"] = "4d";
 ["organization_number"] = 0;
 ["connection"] = "plg4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["organization_id"] = "plg4d-plg4d-0";
 ["language"] = "fi_fi";
 ["redirect"] = {
  [1] = "default";
 };
 ["organization_text"] = "0";
 ["database"] = "plg4d";
 ["is_local"] = true;
 ["login_id"] = "pasi";
 ["show"] = "plg4d plugin 4d";
 ["valid_until"] = "2021-12-08 22:00:06";
};. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)


error: connection database '%s' was not found from auth preference
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:483: in function 'updateConnRec'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:908: in function 'connection'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:813: in function 'setCurrentOrganization'
	/Users/pasi/nc/nc-server/lib/auth.lua:419: in function 'authenticate'
	/Users/pasi/nc/nc-server/lib/rest.lua:410: in function 'jsonValue'
	/Users/pasi/nc/nc-server/lib/rest.lua:505: in function 'createPostAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:615: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	8.12.2021 	21:00:04 	lx 	(4. palvelin)

error: connection database '%s' was not found from auth preference
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:483: in function 'updateConnRec'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:908: in function 'connection'
	/Users/pasi/nc/nc-server/lib/db/dconn.lua:813: in function 'setCurrentOrganization'
	/Users/pasi/nc/nc-server/lib/auth.lua:419: in function 'authenticate'
	/Users/pasi/nc/nc-server/lib/rest.lua:410: in function 'jsonValue'
	/Users/pasi/nc/nc-server/lib/rest.lua:505: in function 'createPostAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:615: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	8.12.2021 	21:00:04 	_lx_SERVER 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	21:06:31 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 134, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

closing socket '134'	1. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

*** tcp close for sock 135, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

closing socket '135'	1. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            27681
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   772
totalBytesSent:       0	1. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 136
	1. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

closing socket '136'	1. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0176c430c0. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0176c430c0, size: 400. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0176c430c0. 	8.12.2021 	21:06:31 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:06:31 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:07:29 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "postgre";
 ["port"] = 5432;
 ["connection"] = {
  [1] = {
   ["port"] = "";
   ["name"] = "postgre local socket";
   ["host"] = "/tmp";
  };
  [2] = {
   ["port"] = "";
   ["name"] = "postgre local socket";
   ["host"] = "/var/run/postgresql";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["dbtype"] = "postgre";
};. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0358405690', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x035841d7f8'. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["connected"] = "2021-12-08 21:07:30";
 ["database_id"] = "fi_demo";
 ["name"] = "postgre local socket";
 ["timeout"] = 120;
 ["port"] = "";
 ["schema"] = "";
 ["host"] = "/tmp";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["organization_id"] = "demo-fi_demo-0";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["database"] = "fi_demo";
 ["password"] = "";
 ["connection_timeout"] = 1;
 ["database_user"] = "manage_demo";
 ["is_local"] = true;
};. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	21:07:30 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01708d2000, size: 400. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 21:07:31, used memory 2998.6 kb ---	5. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

*** tcp close for sock 137, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)

closing socket '137'	1. 	8.12.2021 	21:07:31 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 21:09:08
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 497
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["status"] = "inactive";
 ["valid_until"] = "2021-12-08 22:09:10";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["connection"] = "plg4d";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["organization_id"] = "plg4d-plg4d-0";
 ["organization_number"] = 0;
 ["database"] = "plg4d";
 ["language"] = "fi_fi";
 ["login_id"] = "pasi";
 ["show"] = "plg4d plugin 4d";
 ["organization_text"] = "0";
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "plg4d";
 ["sql_lower"] = false;
 ["port"] = "";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["dbtype"] = "4d";
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x03583fcb90', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

physicalConnect orgPref: 'table: 0x0358483a90'. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["connected"] = "2021-12-08 21:09:08";
 ["database_id"] = "plg4d";
 ["name"] = "Manageri v12 plg4d local";
 ["timeout"] = 120;
 ["port"] = "";
 ["schema"] = "4d";
 ["host"] = "local";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["database"] = "plg4d";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["database_user"] = "manage_demo";
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

querySql4d() param 1 = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

querySql4d() auth.setCurrentOrganization = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

querySql4d() dsql.setConnection = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

querySql4d() param 2 = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:09:08 	lx 	(4. palvelin)

*** tcp close for sock 137, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 767 bytes ***	1. 	8.12.2021 	21:09:18 	lx 	(4. palvelin)

closing socket '137'	1. 	8.12.2021 	21:09:18 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	21:17:27 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 135, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:17:27 	lx 	(4. palvelin)

closing socket '135'	1. 	8.12.2021 	21:17:27 	lx 	(4. palvelin)

*** tcp close for sock 136, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:17:27 	lx 	(4. palvelin)

closing socket '136'	1. 	8.12.2021 	21:17:27 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        0
pollCount:            42009
pollInCount:          2
pollOutCount:         0
pollCloseCount:       2
pollErrCount:         0
fd add/remove count:  4/4
totalBytesReceived:   767
totalBytesSent:       0	1. 	8.12.2021 	21:17:27 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	21:17:27 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01708d2000. 	8.12.2021 	21:17:27 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:17:27 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:17:32 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["port"] = 5432;
 ["connection"] = {
  [1] = {
   ["port"] = "";
   ["host"] = "/tmp";
   ["name"] = "postgre local socket";
  };
  [2] = {
   ["port"] = "";
   ["host"] = "/var/run/postgresql";
   ["name"] = "postgre local socket";
  };
  [3] = {
   ["host"] = "127.0.0.1";
   ["name"] = "postgre local";
  };
  [4] = {
   ["host"] = "host.lima.internal";
   ["name"] = "postgre lima host";
  };
  [5] = {
   ["host"] = "192.168.0.2";
   ["name"] = "postgre .0.2";
  };
  [6] = {
   ["host"] = "192.168.32.5";
   ["name"] = "postgre .32.5";
  };
  [7] = {
   ["host"] = "192.168.32.7";
   ["name"] = "postgre .32.7";
  };
 };
};. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x035976fe70', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["database"] = "fi_demo";
 ["is_local"] = true;
 ["organization_number"] = 0;
 ["show"] = "Demo Postgres demo";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["status"] = "inactive";
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["organization_text"] = "fi_demo";
 ["connection"] = "postgre-demo";
};. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["database_user"] = "manage_demo";
 ["database"] = "fi_demo";
 ["is_local"] = true;
 ["name"] = "postgre local socket";
 ["connected"] = "2021-12-08 21:17:34";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["host"] = "/tmp";
 ["timeout"] = 120;
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["organization_id"] = "demo-fi_demo-0";
 ["port"] = "";
 ["dbtype"] = "postgre";
 ["schema"] = "";
 ["driver"] = "postgre";
 ["database_id"] = "fi_demo";
};. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0154c86fa0, size: 400. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 21:17:34, used memory 2993.3 kb ---	5. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	21:17:34 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 21:17:42
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 501
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["login_id"] = "pasi";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["language"] = "fi_fi";
 ["organization_number"] = 0;
 ["show"] = "plg4d plugin 4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["organization_text"] = "0";
 ["valid_until"] = "2021-12-08 22:17:43";
 ["database"] = "plg4d";
 ["status"] = "inactive";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["connection"] = "plg4d";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["sql_lower"] = false;
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["port"] = "";
 ["connection"] = {
  [1] = {
   ["host"] = "local";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0359660718', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["database"] = "plg4d";
 ["organization_text"] = "0";
 ["organization_number"] = 0;
 ["show"] = "plg4d plugin 4d";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["status"] = "inactive";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["connection"] = "plg4d";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["database_user"] = "manage_demo";
 ["database"] = "plg4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["name"] = "Manageri v12 plg4d local";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["port"] = "";
 ["timeout"] = 120;
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["connected"] = "2021-12-08 21:17:42";
 ["driver"] = "plg4d";
 ["dbtype"] = "4d";
 ["schema"] = "4d";
 ["host"] = "local";
 ["database_id"] = "plg4d";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

querySql4d() param = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dsql.sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver = {
 ["getStringVariable"] = "function: 0x03596d5e08, defined in (290-292)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["callMethodNoReturn"] = "function: 0x03596d4f88, defined in (258-261)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getTimeVariable"] = "function: 0x03596d5f58, defined in (308-310)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getDateVariable"] = "function: 0x03596d5fd8, defined in (313-315)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getBooleanVariable"] = "function: 0x03596d6058, defined in (318-320)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["callMethodReturnString"] = "function: 0x03596d60d8, defined in (324-329)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["callMethodReturnLong"] = "function: 0x03596d6120, defined in (332-337)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["callMethodReturnReal"] = "function: 0x03596d6470, defined in (340-345)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["callMethodReturnTime"] = "function: 0x03596d64b8, defined in (348-353)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["callMethodReturnDate"] = "function: 0x03596d6500, defined in (356-361)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["callMethodReturnBoolean"] = "function: 0x03596d6548, defined in (364-369)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["currentProcessNumber"] = "function: 0x03596d5000, defined in (264-266)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["selectPath"] = "function: 0x035968c1c8, defined in (921-933)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["array4dToIndexTable"] = "function: 0x035968bcd0, defined in (715-729)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["execute"] = "function: 0x035968c180, defined in (893-917)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["selectionToRecordTable"] = "function: 0x035968c140, defined in (887-891)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["selectionToRecordArray"] = "function: 0x035968c0d0, defined in (882-885)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["selectionToArrayTable"] = "function: 0x035968c010, defined in (834-879)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["showSql"] = "function: 0x03596d4968, defined in (59-67)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getSizeOfArray"] = "function: 0x03596d5d00, defined in (621-630)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getArrayStringElement"] = "function: 0x03596d5038, defined in (541-557)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["applicationVersion"] = "function: 0x03596d4c90, defined in (157-162)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getArrayElement"] = "function: 0x03596d5d40, defined in (633-651)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["sleep"] = "function: 0x03596d5100, defined in (268-272)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getArrayBooleanElement"] = "function: 0x03596d6890, defined in (526-538)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getRealVariable"] = "function: 0x03596d5ed8, defined in (303-305)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["connect"] = "function: 0x03596d49d8, defined in (69-71)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getLongVariable"] = "function: 0x03596d5e50, defined in (295-300)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["querySqlAter"] = "function: 0x035968c218, defined in (935-969)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["getVariable"] = "function: 0x03596d5c40, defined in (284-286)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["yieldAbsolute"] = "function: 0x03596d5c08, defined in (280-282)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
 ["yield"] = "function: 0x03596d5bd0, defined in (275-277)@/Users/pasi/nc/nc-server/lib/db/plg4d.lua";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

dsql.sqlQueryExecute connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

plg4d queryName executeSqlIn4d = {
 [1] = "name_id";
 [2] = "text_value";
};. 	8.12.2021 	21:17:42 	lx 	(4. palvelin)

*** tcp close for sock 138, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 771 bytes ***	1. 	8.12.2021 	21:17:51 	lx 	(4. palvelin)

closing socket '138'	1. 	8.12.2021 	21:17:51 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	21:20:44 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 136, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:20:44 	lx 	(4. palvelin)

closing socket '136'	1. 	8.12.2021 	21:20:44 	lx 	(4. palvelin)

*** tcp close for sock 137, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:20:44 	lx 	(4. palvelin)

closing socket '137'	1. 	8.12.2021 	21:20:44 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        0
pollCount:            13529
pollInCount:          1
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   771
totalBytesSent:       0	1. 	8.12.2021 	21:20:44 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	21:20:44 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0154c86fa0. 	8.12.2021 	21:20:44 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:20:44 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:20:47 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = 5432;
 ["driver"] = "postgre";
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/tmp";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/var/run/postgresql";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["dbtype"] = "postgre";
};. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x035dbe79c0', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["show"] = "Demo Postgres demo";
 ["is_local"] = true;
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["status"] = "inactive";
 ["database"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["organization_text"] = "fi_demo";
 ["connection"] = "postgre-demo";
};. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["name"] = "postgre local socket";
 ["connected"] = "2021-12-08 21:20:49";
 ["is_local"] = true;
 ["host"] = "/tmp";
 ["organization_id"] = "demo-fi_demo-0";
 ["driver"] = "postgre";
 ["schema"] = "";
 ["database_user"] = "manage_demo";
 ["database"] = "fi_demo";
 ["timeout"] = 120;
 ["connection_timeout"] = 1;
 ["dbtype"] = "postgre";
 ["password"] = "";
 ["port"] = "";
 ["database_id"] = "fi_demo";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
};. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01708f52a0, size: 400. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 21:20:49, used memory 2993.4 kb ---	5. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	21:20:49 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 21:20:56
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 508
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["show"] = "plg4d plugin 4d";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["language"] = "fi_fi";
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["login_id"] = "pasi";
 ["organization_text"] = "0";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["status"] = "inactive";
 ["connection"] = "plg4d";
 ["valid_until"] = "2021-12-08 22:20:57";
 ["database"] = "plg4d";
 ["organization_id"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = "";
 ["dbtype"] = "4d";
 ["sql_lower"] = false;
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x035db3d480', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["show"] = "plg4d plugin 4d";
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["status"] = "inactive";
 ["database"] = "plg4d";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["organization_text"] = "0";
 ["connection"] = "plg4d";
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["name"] = "Manageri v12 plg4d local";
 ["database_user"] = "manage_demo";
 ["connected"] = "2021-12-08 21:20:56";
 ["host"] = "local";
 ["database_id"] = "plg4d";
 ["schema"] = "4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["port"] = "";
 ["timeout"] = 120;
 ["connection_timeout"] = 1;
 ["dbtype"] = "4d";
 ["password"] = "";
 ["database"] = "plg4d";
 ["driver"] = "plg4d";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

querySql4d() param = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dsql.sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

dsql.sqlQueryExecute connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE before. 	8.12.2021 	21:20:56 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after. 	8.12.2021 	21:22:14 	lx 	(4. palvelin)

plg4d queryName executeSqlIn4d = {
 [1] = "name_id";
 [2] = "text_value";
};. 	8.12.2021 	21:22:14 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	21:35:07 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 137, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

closing socket '137'	1. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

*** tcp close for sock 138, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

closing socket '138'	1. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            53033
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   778
totalBytesSent:       0	1. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 139
	1. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

closing socket '139'	1. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01708f52a0. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01708f52a0, size: 400. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01708f52a0. 	8.12.2021 	21:35:07 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:35:07 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:35:15 	_lx_SERVER 	(4. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/utf16.lua:352: attempt to index local 'utf16' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/utf16.lua:352: in main chunk
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/lib/unicode4d.lua:8: in main chunk
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:27: in function 'loadLibs'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:166: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:259: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:317: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:135: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:243: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:367: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk. 	8.12.2021 	21:35:17 	_lua_ FileRun 	(4. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:. 	8.12.2021 	21:35:17 	_lua_ FileUnload 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:35:17 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 on jo käynnissä. 	8.12.2021 	21:35:44 	_lx_SERVER 	(5. tbl_ 4)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:35:46 	_lx_SERVER 	(4. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

/Users/pasi/nc/nc-server/lib/utf16.lua:352: attempt to index local 'utf16' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/lib/utf16.lua:352: in main chunk
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/lib/unicode4d.lua:8: in main chunk
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:27: in function 'loadLibs'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:166: in function 'callMethod'
	/Users/pasi/nc/nc-server/lib/db/plg4d.lua:259: in function 'callMethodNoReturn'
	/Users/pasi/nc/nc-server/lib/start.lua:317: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:135: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:243: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:367: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk. 	8.12.2021 	21:35:48 	_lua_ FileRun 	(4. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:. 	8.12.2021 	21:35:48 	_lua_ FileUnload 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:35:48 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 on jo käynnissä. 	8.12.2021 	21:39:21 	_lx_SERVER 	(5. tbl_ 4)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:39:21 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["host"] = "/tmp";
   ["port"] = "";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["host"] = "/var/run/postgresql";
   ["port"] = "";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["driver"] = "postgre";
 ["port"] = 5432;
 ["dbtype"] = "postgre";
};. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0362353020', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["database"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["status"] = "inactive";
 ["is_local"] = true;
 ["show"] = "Demo Postgres demo";
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["organization_text"] = "fi_demo";
 ["connection"] = "postgre-demo";
};. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["name"] = "postgre local socket";
 ["host"] = "/tmp";
 ["connected"] = "2021-12-08 21:39:23";
 ["database"] = "fi_demo";
 ["timeout"] = 120;
 ["organization_id"] = "demo-fi_demo-0";
 ["schema"] = "";
 ["database_user"] = "manage_demo";
 ["is_local"] = true;
 ["driver"] = "postgre";
 ["database_id"] = "fi_demo";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["password"] = "";
 ["port"] = "";
 ["dbtype"] = "postgre";
 ["connection_timeout"] = 1;
};. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0170878ad0, size: 400. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-08 21:39:23, used memory 2993.4 kb ---	5. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	21:39:23 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 21:39:33
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 504
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["language"] = "fi_fi";
 ["database"] = "plg4d";
 ["login_id"] = "pasi";
 ["organization_id"] = "plg4d-plg4d-0";
 ["valid_until"] = "2021-12-08 22:39:35";
 ["status"] = "inactive";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["show"] = "plg4d plugin 4d";
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["organization_text"] = "0";
 ["connection"] = "plg4d";
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "plg4d";
 ["sql_lower"] = false;
 ["port"] = "";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["dbtype"] = "4d";
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0362220110', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["database"] = "plg4d";
 ["status"] = "inactive";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["show"] = "plg4d plugin 4d";
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["organization_text"] = "0";
 ["connection"] = "plg4d";
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["name"] = "Manageri v12 plg4d local";
 ["host"] = "local";
 ["connected"] = "2021-12-08 21:39:33";
 ["database"] = "plg4d";
 ["timeout"] = 120;
 ["password"] = "";
 ["organization_id"] = "plg4d-plg4d-0";
 ["dbtype"] = "4d";
 ["database_user"] = "manage_demo";
 ["driver"] = "plg4d";
 ["database_id"] = "plg4d";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["schema"] = "4d";
 ["port"] = "";
 ["connection_timeout"] = 1;
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dsql.sqlExecuteUnsafe option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

dsql.sqlQueryExecute connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE before. 	8.12.2021 	21:39:33 	lx 	(4. palvelin)

*** tcp close for sock 140, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 774 bytes ***	1. 	8.12.2021 	21:39:53 	lx 	(4. palvelin)

closing socket '140'	1. 	8.12.2021 	21:39:53 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	21:40:55 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 138, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:40:55 	lx 	(4. palvelin)

closing socket '138'	1. 	8.12.2021 	21:40:55 	lx 	(4. palvelin)

*** tcp close for sock 139, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:40:55 	lx 	(4. palvelin)

closing socket '139'	1. 	8.12.2021 	21:40:55 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        0
pollCount:            5777
pollInCount:          1
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   774
totalBytesSent:       0	1. 	8.12.2021 	21:40:55 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	21:40:55 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0170878ad0. 	8.12.2021 	21:40:55 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:40:55 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:41:02 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "postgre";
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/tmp";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/var/run/postgresql";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["dbtype"] = "postgre";
 ["port"] = 5432;
};. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0366857458', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["organization_text"] = "fi_demo";
 ["is_local"] = true;
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["connection"] = "postgre-demo";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["show"] = "Demo Postgres demo";
 ["status"] = "inactive";
 ["database"] = "fi_demo";
};. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["name"] = "postgre local socket";
 ["database_user"] = "manage_demo";
 ["organization_id"] = "demo-fi_demo-0";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["connected"] = "2021-12-08 21:41:04";
 ["timeout"] = 120;
 ["port"] = "";
 ["host"] = "/tmp";
 ["connection_timeout"] = 1;
 ["dbtype"] = "postgre";
 ["password"] = "";
 ["driver"] = "postgre";
 ["schema"] = "";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["database"] = "fi_demo";
};. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e90be0, size: 400. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 21:41:04, used memory 2993.5 kb ---	5. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	21:41:04 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	21:41:34 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 139, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:41:34 	lx 	(4. palvelin)

closing socket '139'	1. 	8.12.2021 	21:41:34 	lx 	(4. palvelin)

*** tcp close for sock 140, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:41:34 	lx 	(4. palvelin)

closing socket '140'	1. 	8.12.2021 	21:41:34 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            2056
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1. 	8.12.2021 	21:41:34 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	21:41:34 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8e90be0. 	8.12.2021 	21:41:34 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:41:34 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:41:42 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "postgre";
 ["port"] = 5432;
 ["dbtype"] = "postgre";
 ["connection"] = {
  [1] = {
   ["host"] = "/tmp";
   ["name"] = "postgre local socket";
   ["port"] = "";
  };
  [2] = {
   ["host"] = "/var/run/postgresql";
   ["name"] = "postgre local socket";
   ["port"] = "";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
};. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x036abf1818', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["organization_text"] = "fi_demo";
 ["show"] = "Demo Postgres demo";
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["database"] = "fi_demo";
 ["connection"] = "postgre-demo";
 ["is_local"] = true;
 ["status"] = "inactive";
 ["organization_number"] = 0;
};. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["organization_id"] = "demo-fi_demo-0";
 ["port"] = "";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["schema"] = "";
 ["name"] = "postgre local socket";
 ["connected"] = "2021-12-08 21:41:43";
 ["driver"] = "postgre";
 ["timeout"] = 120;
 ["database_user"] = "manage_demo";
 ["database"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["host"] = "/tmp";
 ["database_id"] = "fi_demo";
 ["is_local"] = true;
};. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	21:41:43 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e90be0, size: 400. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 21:41:44, used memory 2993.6 kb ---	5. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	21:41:44 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 21:41:51
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 499
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["organization_id"] = "plg4d-plg4d-0";
 ["language"] = "fi_fi";
 ["organization_text"] = "0";
 ["show"] = "plg4d plugin 4d";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["login_id"] = "pasi";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["valid_until"] = "2021-12-08 22:41:53";
 ["connection"] = "plg4d";
 ["database"] = "plg4d";
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["status"] = "inactive";
 ["organization_number"] = 0;
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "plg4d";
 ["port"] = "";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["dbtype"] = "4d";
 ["sql_lower"] = false;
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x036abe06a0', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["organization_text"] = "0";
 ["show"] = "plg4d plugin 4d";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = "plg4d";
 ["database"] = "plg4d";
 ["status"] = "inactive";
 ["organization_number"] = 0;
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["organization_id"] = "plg4d-plg4d-0";
 ["port"] = "";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["schema"] = "4d";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["timeout"] = 120;
 ["connected"] = "2021-12-08 21:41:51";
 ["database"] = "plg4d";
 ["database_user"] = "manage_demo";
 ["host"] = "local";
 ["database_id"] = "plg4d";
 ["name"] = "Manageri v12 plg4d local";
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dsql.sqlExecuteUnsafe option = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

dsql.sqlQueryExecute connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE before. 	8.12.2021 	21:41:51 	lx 	(4. palvelin)

getVariable before toUnichar: _lx_atQueryValueParam. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

getVariable before PA_GetVariable: cdata<unsigned short *>: 0x036b00abc0. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

getVariable before PA_GetVariable: cdata<struct PA_Variable ()>: 0x011e5e8188. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryValueParam. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

getVariable before toUnichar: _lx_atQueryExecuteParam. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

getVariable before PA_GetVariable: cdata<unsigned short *>: 0x036b00c090. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

getVariable before PA_GetVariable: cdata<struct PA_Variable ()>: 0x011e5e8188. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

getVariable before toUnichar: _lx_atQueryNameParam. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

getVariable before PA_GetVariable: cdata<unsigned short *>: 0x036b00c5a8. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

getVariable before PA_GetVariable: cdata<struct PA_Variable ()>: 0x011e5e8188. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

plg4d queryName executeSqlIn4d = {
 [1] = "name_id";
 [2] = "text_value";
};. 	8.12.2021 	21:41:56 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	21:44:49 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 140, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

closing socket '140'	1. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

*** tcp close for sock 141, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

closing socket '141'	1. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            12729
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   769
totalBytesSent:       0	1. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 142
	1. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

closing socket '142'	1. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x02a8e90be0. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e90be0, size: 400. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8e90be0. 	8.12.2021 	21:44:49 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:44:49 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:44:56 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/tmp";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/var/run/postgresql";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["dbtype"] = "postgre";
 ["port"] = 5432;
 ["driver"] = "postgre";
};. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x036f1f2fd8', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["connection"] = "postgre-demo";
 ["status"] = "inactive";
 ["driver"] = "postgre";
 ["is_local"] = true;
 ["organization_number"] = 0;
 ["database"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["show"] = "Demo Postgres demo";
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["organization_text"] = "fi_demo";
};. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["host"] = "/tmp";
 ["dbtype"] = "postgre";
 ["connected"] = "2021-12-08 21:44:57";
 ["driver"] = "postgre";
 ["database"] = "fi_demo";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["database_user"] = "manage_demo";
 ["name"] = "postgre local socket";
 ["timeout"] = 120;
 ["port"] = "";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["organization_id"] = "demo-fi_demo-0";
 ["schema"] = "";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
};. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e06170, size: 400. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 21:44:57, used memory 2993.4 kb ---	5. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	21:44:57 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 21:45:04
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 500
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["connection"] = "plg4d";
 ["status"] = "inactive";
 ["redirect"] = {
  [1] = "default";
 };
 ["alias_id"] = "4d";
 ["is_local"] = true;
 ["valid_until"] = "2021-12-08 22:45:06";
 ["organization_number"] = 0;
 ["language"] = "fi_fi";
 ["database"] = "plg4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["login_id"] = "pasi";
 ["show"] = "plg4d plugin 4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["schema"] = "4d";
 ["organization_text"] = "0";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["sql_lower"] = false;
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["port"] = "";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x036f0bff80', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["connection"] = "plg4d";
 ["status"] = "inactive";
 ["driver"] = "plg4d";
 ["organization_number"] = 0;
 ["database"] = "plg4d";
 ["dbtype"] = "4d";
 ["show"] = "plg4d plugin 4d";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["organization_text"] = "0";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["host"] = "local";
 ["dbtype"] = "4d";
 ["connected"] = "2021-12-08 21:45:04";
 ["driver"] = "plg4d";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["timeout"] = 120;
 ["database_id"] = "plg4d";
 ["database_user"] = "manage_demo";
 ["name"] = "Manageri v12 plg4d local";
 ["database"] = "plg4d";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["organization_id"] = "plg4d-plg4d-0";
 ["schema"] = "4d";
 ["port"] = "";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

querySql4d() param = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dsql.sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

dsql.sqlQueryExecute connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE before. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryValueParam. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

plg4d queryName executeSqlIn4d = {
 [1] = "name_id";
 [2] = "text_value";
};. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

plg4d queryName executeSqlIn4d queryName setArrayStringElement after. 	8.12.2021 	21:45:04 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	21:48:20 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 141, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

closing socket '141'	1. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

*** tcp close for sock 142, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

closing socket '142'	1. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            14153
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   770
totalBytesSent:       0	1. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 143
	1. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

closing socket '143'	1. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x02a8e06170. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x02a8e06170, size: 400. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x02a8e06170. 	8.12.2021 	21:48:21 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:48:21 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:48:26 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["host"] = "/tmp";
   ["port"] = "";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["host"] = "/var/run/postgresql";
   ["port"] = "";
  };
  [3] = {
   ["host"] = "127.0.0.1";
   ["name"] = "postgre local";
  };
  [4] = {
   ["host"] = "host.lima.internal";
   ["name"] = "postgre lima host";
  };
  [5] = {
   ["host"] = "192.168.0.2";
   ["name"] = "postgre .0.2";
  };
  [6] = {
   ["host"] = "192.168.32.5";
   ["name"] = "postgre .32.5";
  };
  [7] = {
   ["host"] = "192.168.32.7";
   ["name"] = "postgre .32.7";
  };
 };
 ["dbtype"] = "postgre";
 ["port"] = 5432;
 ["driver"] = "postgre";
};. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x03736fe660', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["database"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["is_local"] = true;
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["connection"] = "postgre-demo";
 ["organization_text"] = "fi_demo";
 ["show"] = "Demo Postgres demo";
 ["status"] = "inactive";
};. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["database"] = "fi_demo";
 ["name"] = "postgre local socket";
 ["connected"] = "2021-12-08 21:48:27";
 ["driver"] = "postgre";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["host"] = "/tmp";
 ["port"] = "";
 ["schema"] = "";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["timeout"] = 120;
 ["database_user"] = "manage_demo";
 ["organization_id"] = "demo-fi_demo-0";
};. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	21:48:27 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0173c0e170, size: 400. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

--- server started in 0.007 seconds, 2021-12-08 21:48:28, used memory 2993.8 kb ---	5. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	21:48:28 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 21:48:34
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 499
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["database"] = "plg4d";
 ["login_id"] = "pasi";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["alias_id"] = "4d";
 ["language"] = "fi_fi";
 ["organization_text"] = "0";
 ["organization_number"] = 0;
 ["connection"] = "plg4d";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["status"] = "inactive";
 ["valid_until"] = "2021-12-08 22:48:36";
 ["show"] = "plg4d plugin 4d";
 ["is_local"] = true;
 ["organization_id"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = "";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["host"] = "local";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
 ["sql_lower"] = false;
 ["dbtype"] = "4d";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x03735a01e0', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["database"] = "plg4d";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["show"] = "plg4d plugin 4d";
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["connection"] = "plg4d";
 ["organization_text"] = "0";
 ["status"] = "inactive";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["database"] = "plg4d";
 ["name"] = "Manageri v12 plg4d local";
 ["connected"] = "2021-12-08 21:48:34";
 ["driver"] = "plg4d";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["schema"] = "4d";
 ["database_id"] = "plg4d";
 ["database_user"] = "manage_demo";
 ["timeout"] = 120;
 ["port"] = "";
 ["host"] = "local";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["dbtype"] = "4d";
 ["organization_id"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dsql.sqlExecuteUnsafe option = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

dsql.sqlQueryExecute connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE before. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryValueParam. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

plg4d queryName executeSqlIn4d = {
 [1] = "name_id";
 [2] = "text_value";
};. 	8.12.2021 	21:48:34 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	21:52:24 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 142, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

closing socket '142'	1. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

*** tcp close for sock 143, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

closing socket '143'	1. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            16121
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   769
totalBytesSent:       0	1. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 144
	1. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

closing socket '144'	1. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0173c0e170. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0173c0e170, size: 400. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0173c0e170. 	8.12.2021 	21:52:24 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	21:52:24 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	21:52:30 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["connection"] = {
  [1] = {
   ["host"] = "/tmp";
   ["name"] = "postgre local socket";
   ["port"] = "";
  };
  [2] = {
   ["host"] = "/var/run/postgresql";
   ["name"] = "postgre local socket";
   ["port"] = "";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["port"] = 5432;
};. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0377c25908', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["database"] = "fi_demo";
 ["organization_number"] = 0;
 ["organization_text"] = "fi_demo";
 ["driver"] = "postgre";
 ["status"] = "inactive";
 ["show"] = "Demo Postgres demo";
 ["dbtype"] = "postgre";
 ["connection"] = "postgre-demo";
 ["schema"] = "";
 ["redirect"] = {
  [1] = "";
 };
 ["is_local"] = true;
};. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["database"] = "fi_demo";
 ["connected"] = "2021-12-08 21:52:31";
 ["name"] = "postgre local socket";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["database_user"] = "manage_demo";
 ["driver"] = "postgre";
 ["password"] = "";
 ["organization_id"] = "demo-fi_demo-0";
 ["database_id"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["schema"] = "";
 ["port"] = "";
 ["timeout"] = 120;
 ["connection_timeout"] = 1;
 ["host"] = "/tmp";
 ["is_local"] = true;
};. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	21:52:31 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01708486e0, size: 400. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 21:52:32, used memory 2994.0 kb ---	5. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	21:52:32 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 21:52:36
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 504
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["valid_until"] = "2021-12-08 22:52:38";
 ["organization_number"] = 0;
 ["status"] = "inactive";
 ["organization_text"] = "0";
 ["login_id"] = "pasi";
 ["database"] = "plg4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["language"] = "fi_fi";
 ["connection"] = "plg4d";
 ["show"] = "plg4d plugin 4d";
 ["alias_id"] = "4d";
 ["is_local"] = true;
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["sql_lower"] = false;
 ["port"] = "";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0377a7ff68', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["database"] = "plg4d";
 ["organization_number"] = 0;
 ["organization_text"] = "0";
 ["driver"] = "plg4d";
 ["status"] = "inactive";
 ["show"] = "plg4d plugin 4d";
 ["connection"] = "plg4d";
 ["dbtype"] = "4d";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["database"] = "plg4d";
 ["connected"] = "2021-12-08 21:52:36";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["password"] = "";
 ["driver"] = "plg4d";
 ["database_user"] = "manage_demo";
 ["organization_id"] = "plg4d-plg4d-0";
 ["database_id"] = "plg4d";
 ["name"] = "Manageri v12 plg4d local";
 ["schema"] = "4d";
 ["port"] = "";
 ["timeout"] = 120;
 ["connection_timeout"] = 1;
 ["host"] = "local";
 ["dbtype"] = "4d";
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dsql.sqlExecuteUnsafe option = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

dsql.sqlQueryExecute connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE before. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryValueParam. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryExecuteParam. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryNameParam. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	21:52:36 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	22:02:51 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 143, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

closing socket '143'	1. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

*** tcp close for sock 144, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

closing socket '144'	1. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            42089
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   774
totalBytesSent:       0	1. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 145
	1. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

closing socket '145'	1. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01708486e0. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01708486e0, size: 400. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01708486e0. 	8.12.2021 	22:02:51 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	22:02:51 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	22:02:57 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["dbtype"] = "postgre";
 ["port"] = 5432;
 ["driver"] = "postgre";
 ["connection"] = {
  [1] = {
   ["host"] = "/tmp";
   ["port"] = "";
   ["name"] = "postgre local socket";
  };
  [2] = {
   ["host"] = "/var/run/postgresql";
   ["port"] = "";
   ["name"] = "postgre local socket";
  };
  [3] = {
   ["host"] = "127.0.0.1";
   ["name"] = "postgre local";
  };
  [4] = {
   ["host"] = "host.lima.internal";
   ["name"] = "postgre lima host";
  };
  [5] = {
   ["host"] = "192.168.0.2";
   ["name"] = "postgre .0.2";
  };
  [6] = {
   ["host"] = "192.168.32.5";
   ["name"] = "postgre .32.5";
  };
  [7] = {
   ["host"] = "192.168.32.7";
   ["name"] = "postgre .32.7";
  };
 };
};. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x037c0ab860', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["show"] = "Demo Postgres demo";
 ["database"] = "fi_demo";
 ["is_local"] = true;
 ["organization_text"] = "fi_demo";
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["dbtype"] = "postgre";
 ["connection"] = "postgre-demo";
 ["driver"] = "postgre";
 ["status"] = "inactive";
};. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["dbtype"] = "postgre";
 ["database"] = "fi_demo";
 ["connected"] = "2021-12-08 22:02:59";
 ["timeout"] = 120;
 ["database_user"] = "manage_demo";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["host"] = "/tmp";
 ["schema"] = "";
 ["port"] = "";
 ["password"] = "";
 ["connection_timeout"] = 1;
 ["organization_id"] = "demo-fi_demo-0";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["driver"] = "postgre";
 ["name"] = "postgre local socket";
};. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01765ffa80, size: 400. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-08 22:02:59, used memory 2994.4 kb ---	5. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	22:02:59 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 22:03:06
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 510
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["show"] = "plg4d plugin 4d";
 ["database"] = "plg4d";
 ["alias_id"] = "4d";
 ["language"] = "fi_fi";
 ["is_local"] = true;
 ["organization_text"] = "0";
 ["organization_number"] = 0;
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["login_id"] = "pasi";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["connection"] = "plg4d";
 ["status"] = "inactive";
 ["valid_until"] = "2021-12-08 23:03:08";
};. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["dbtype"] = "4d";
 ["port"] = "";
 ["connection"] = {
  [1] = {
   ["host"] = "local";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
 ["driver"] = "plg4d";
 ["sql_lower"] = false;
};. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x037bf60638', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["show"] = "plg4d plugin 4d";
 ["database"] = "plg4d";
 ["organization_text"] = "0";
 ["organization_number"] = 0;
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["dbtype"] = "4d";
 ["connection"] = "plg4d";
 ["driver"] = "plg4d";
 ["status"] = "inactive";
};. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	22:03:06 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["dbtype"] = "4d";
 ["database"] = "plg4d";
 ["connected"] = "2021-12-08 22:03:06";
 ["timeout"] = 120;
 ["port"] = "";
 ["organization_id"] = "plg4d-plg4d-0";
 ["database_id"] = "plg4d";
 ["database_user"] = "manage_demo";
 ["connection_timeout"] = 1;
 ["host"] = "local";
 ["schema"] = "4d";
 ["password"] = "";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["driver"] = "plg4d";
 ["name"] = "Manageri v12 plg4d local";
};. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

dsql.sqlExecuteUnsafe option = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

dsql.sqlQueryExecute connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE before. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryValueParam. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryExecuteParam. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryNameParam. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600014255a40, value SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600014257f20, value plg4d.executeSql. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600014255180, value table: 0x037bf6e058. 	8.12.2021 	22:03:07 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	22:16:10 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 144, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

closing socket '144'	1. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

*** tcp close for sock 145, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

closing socket '145'	1. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            54729
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   780
totalBytesSent:       0	1. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 146
	1. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

closing socket '146'	1. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01765ffa80. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01765ffa80, size: 400. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01765ffa80. 	8.12.2021 	22:16:10 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	22:16:10 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	22:16:28 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["dbtype"] = "postgre";
 ["connection"] = {
  [1] = {
   ["host"] = "/tmp";
   ["port"] = "";
   ["name"] = "postgre local socket";
  };
  [2] = {
   ["host"] = "/var/run/postgresql";
   ["port"] = "";
   ["name"] = "postgre local socket";
  };
  [3] = {
   ["host"] = "127.0.0.1";
   ["name"] = "postgre local";
  };
  [4] = {
   ["host"] = "host.lima.internal";
   ["name"] = "postgre lima host";
  };
  [5] = {
   ["host"] = "192.168.0.2";
   ["name"] = "postgre .0.2";
  };
  [6] = {
   ["host"] = "192.168.32.5";
   ["name"] = "postgre .32.5";
  };
  [7] = {
   ["host"] = "192.168.32.7";
   ["name"] = "postgre .32.7";
  };
 };
 ["port"] = 5432;
 ["driver"] = "postgre";
};. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x038044b570', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["organization_number"] = 0;
 ["dbtype"] = "postgre";
 ["organization_text"] = "fi_demo";
 ["schema"] = "";
 ["show"] = "Demo Postgres demo";
 ["connection"] = "postgre-demo";
 ["driver"] = "postgre";
 ["status"] = "inactive";
 ["redirect"] = {
  [1] = "";
 };
 ["database"] = "fi_demo";
 ["is_local"] = true;
};. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["host"] = "/tmp";
 ["connected"] = "2021-12-08 22:16:30";
 ["organization_id"] = "demo-fi_demo-0";
 ["port"] = "";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["name"] = "postgre local socket";
 ["schema"] = "";
 ["timeout"] = 120;
 ["database_id"] = "fi_demo";
 ["driver"] = "postgre";
 ["dbtype"] = "postgre";
 ["database_user"] = "manage_demo";
 ["database"] = "fi_demo";
 ["is_local"] = true;
};. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x016a1dbf10, size: 400. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 22:16:30, used memory 2998.7 kb ---	5. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	22:16:30 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 22:16:41
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 507
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["language"] = "fi_fi";
 ["organization_number"] = 0;
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["valid_until"] = "2021-12-08 23:16:43";
 ["redirect"] = {
  [1] = "default";
 };
 ["database"] = "plg4d";
 ["show"] = "plg4d plugin 4d";
 ["schema"] = "4d";
 ["status"] = "inactive";
 ["organization_text"] = "0";
 ["is_local"] = true;
 ["login_id"] = "pasi";
 ["organization_id"] = "plg4d-plg4d-0";
 ["alias_id"] = "4d";
 ["connection"] = "plg4d";
};. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["sql_lower"] = false;
 ["port"] = "";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["host"] = "local";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
};. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x038043d598', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["organization_number"] = 0;
 ["organization_text"] = "0";
 ["schema"] = "4d";
 ["dbtype"] = "4d";
 ["show"] = "plg4d plugin 4d";
 ["driver"] = "plg4d";
 ["status"] = "inactive";
 ["redirect"] = {
  [1] = "default";
 };
 ["database"] = "plg4d";
 ["connection"] = "plg4d";
};. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["host"] = "local";
 ["connected"] = "2021-12-08 22:16:41";
 ["port"] = "";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["driver"] = "plg4d";
 ["schema"] = "4d";
 ["database_id"] = "plg4d";
 ["timeout"] = 120;
 ["name"] = "Manageri v12 plg4d local";
 ["dbtype"] = "4d";
 ["database_user"] = "manage_demo";
 ["database"] = "plg4d";
 ["organization_id"] = "plg4d-plg4d-0";
};. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE before. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryValueParam. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryExecuteParam. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

_lx_QUERY_PARAM_RESIZE after getVariable _lx_atQueryNameParam. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x60001473d5e0, value SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x60001473f660, value table: 0x038043f700. 	8.12.2021 	22:16:41 	lx 	(4. palvelin)

*** tcp close for sock 147, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 777 bytes ***	1. 	8.12.2021 	22:16:55 	lx 	(4. palvelin)

closing socket '147'	1. 	8.12.2021 	22:16:55 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	22:19:37 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 145, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	22:19:37 	lx 	(4. palvelin)

closing socket '145'	1. 	8.12.2021 	22:19:37 	lx 	(4. palvelin)

*** tcp close for sock 146, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	22:19:37 	lx 	(4. palvelin)

closing socket '146'	1. 	8.12.2021 	22:19:37 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        0
pollCount:            13177
pollInCount:          1
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   777
totalBytesSent:       0	1. 	8.12.2021 	22:19:37 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	22:19:37 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x016a1dbf10. 	8.12.2021 	22:19:37 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	22:19:37 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	22:19:43 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["port"] = 5432;
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/tmp";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/var/run/postgresql";
  };
  [3] = {
   ["host"] = "127.0.0.1";
   ["name"] = "postgre local";
  };
  [4] = {
   ["host"] = "host.lima.internal";
   ["name"] = "postgre lima host";
  };
  [5] = {
   ["host"] = "192.168.0.2";
   ["name"] = "postgre .0.2";
  };
  [6] = {
   ["host"] = "192.168.32.5";
   ["name"] = "postgre .32.5";
  };
  [7] = {
   ["host"] = "192.168.32.7";
   ["name"] = "postgre .32.7";
  };
 };
};. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0384991ae8', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["show"] = "Demo Postgres demo";
 ["connection"] = "postgre-demo";
 ["organization_text"] = "fi_demo";
 ["database"] = "fi_demo";
 ["is_local"] = true;
 ["status"] = "inactive";
 ["organization_number"] = 0;
};. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["connected"] = "2021-12-08 22:19:45";
 ["host"] = "/tmp";
 ["password"] = "";
 ["timeout"] = 120;
 ["schema"] = "";
 ["name"] = "postgre local socket";
 ["organization_id"] = "demo-fi_demo-0";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["connection_timeout"] = 1;
 ["database_user"] = "manage_demo";
 ["database"] = "fi_demo";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["port"] = "";
};. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x016a1dd030, size: 400. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 22:19:45, used memory 2994.1 kb ---	5. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	22:19:45 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 22:19:49
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 512
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["valid_until"] = "2021-12-08 23:19:51";
 ["language"] = "fi_fi";
 ["connection"] = "plg4d";
 ["is_local"] = true;
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["alias_id"] = "4d";
 ["show"] = "plg4d plugin 4d";
 ["login_id"] = "pasi";
 ["organization_text"] = "0";
 ["database"] = "plg4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["status"] = "inactive";
 ["organization_number"] = 0;
};. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["host"] = "local";
   ["name"] = "Manageri v12 plg4d local";
  };
 };
 ["port"] = "";
 ["sql_lower"] = false;
};. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x03849205a8', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["show"] = "plg4d plugin 4d";
 ["organization_text"] = "0";
 ["database"] = "plg4d";
 ["organization_number"] = 0;
 ["status"] = "inactive";
 ["connection"] = "plg4d";
};. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["host"] = "local";
 ["password"] = "";
 ["timeout"] = 120;
 ["schema"] = "4d";
 ["connected"] = "2021-12-08 22:19:49";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["organization_id"] = "plg4d-plg4d-0";
 ["connection_timeout"] = 1;
 ["database_user"] = "manage_demo";
 ["database"] = "plg4d";
 ["name"] = "Manageri v12 plg4d local";
 ["database_id"] = "plg4d";
 ["port"] = "";
};. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600010568870, value SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600010568690, value table: 0x0384c30cf0. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x60001056b570, value plg4d.executeSqlIn4d. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:19:49 	lx 	(4. palvelin)

SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:20:47 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x0384c30cf0. 	8.12.2021 	22:20:47 	_json_ Parse 	(4. palvelin)

querySql4d() querySqlAter = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:20:47 	lx 	(4. palvelin)

querySql4d() return = {
 ["data"] = {
  [1] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_co.json";
  };
  [2] = {
   ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
   ["name_id"] = "_tab_default.json";
  };
 };
 ["info"] = {
  ["rowCount"] = 2;
  ["columnName"] = {
   [1] = "name_id";
   [2] = "text_value";
  };
  ["columnCount"] = 2;
  ["rowCountTotal"] = 2;
  ["queryTime"] = 1.4058591879998;
 };
};. 	8.12.2021 	22:20:47 	lx 	(4. palvelin)


 1. answer time: 00:00:01.40713
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:20:47 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:20:47 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:20:47 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_TAB_TO_JSON";
 ["auth"] = {
  ["valid_until"] = "2021-12-08 23:19:51";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["is_local"] = true;
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["alias_id"] = "4d";
  ["show"] = "plg4d plugin 4d";
  ["login_id"] = "pasi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["status"] = "inactive";
  ["organization_number"] = 0;
 };
};. 	8.12.2021 	22:20:47 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:20:47 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:20:47 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ALP_TO_JSON";
 ["auth"] = {
  ["valid_until"] = "2021-12-08 23:19:51";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["is_local"] = true;
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["alias_id"] = "4d";
  ["show"] = "plg4d plugin 4d";
  ["login_id"] = "pasi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["status"] = "inactive";
  ["organization_number"] = 0;
 };
};. 	8.12.2021 	22:20:47 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ LANG_TO_JSON";
 ["auth"] = {
  ["valid_until"] = "2021-12-08 23:19:51";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["is_local"] = true;
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["alias_id"] = "4d";
  ["show"] = "plg4d plugin 4d";
  ["login_id"] = "pasi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["status"] = "inactive";
  ["organization_number"] = 0;
 };
};. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ FO_QRY_POP_TO_JSON";
 ["auth"] = {
  ["valid_until"] = "2021-12-08 23:19:51";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["is_local"] = true;
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["alias_id"] = "4d";
  ["show"] = "plg4d plugin 4d";
  ["login_id"] = "pasi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["status"] = "inactive";
  ["organization_number"] = 0;
 };
};. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_POP_TO_JSON";
 ["auth"] = {
  ["valid_until"] = "2021-12-08 23:19:51";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["is_local"] = true;
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["alias_id"] = "4d";
  ["show"] = "plg4d plugin 4d";
  ["login_id"] = "pasi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["status"] = "inactive";
  ["organization_number"] = 0;
 };
};. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ NEW_REC_DEFAULTS_TO_JSON";
 ["auth"] = {
  ["valid_until"] = "2021-12-08 23:19:51";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["is_local"] = true;
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["alias_id"] = "4d";
  ["show"] = "plg4d plugin 4d";
  ["login_id"] = "pasi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["status"] = "inactive";
  ["organization_number"] = 0;
 };
};. 	8.12.2021 	22:20:48 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	22:20:48 	_prf_ FO_QRY_POP_TO_JSON 	(13. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600010568870, value SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600010568690, value table: 0x0384d00158. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x60001056b570, value plg4d.executeSqlIn4d. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:20:49 	lx 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	22:20:50 	_arr apBlob 	(11. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	22:20:50 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	22:20:52 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	22:20:52 	_prf _AlpJsonText 	(11. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	22:20:52 	_arr apBlob 	(11. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	22:20:52 	_arr apBlob 	(11. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	22:20:52 	_prf _AlpJsonText 	(11. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	22:20:52 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	22:20:53 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	22:20:53 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	22:20:53 	_prf _AlpJsonText 	(11. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	22:20:53 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)

SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:21:57 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x0384d00158. 	8.12.2021 	22:21:57 	_json_ Parse 	(4. palvelin)

querySql4d() querySqlAter = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:21:57 	lx 	(4. palvelin)

querySql4d() return = {
 ["data"] = {
  [1] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Vain päätasot (taso 0)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;1)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki ylätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Alatasot (taso 1)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;2)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki alatasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_w.json";
  };
  [2] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=sor_HAE AVOIMET (False)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet BW,Daewoo\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenLoadgroup_BW,Daewoo\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Toimittamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamatta_vahv_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_vahv_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"AH-myöh.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==AH-myöhässä\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Työmääräin tekemättä\",\
      \"list_name\": \"Työmääräin tekemättä\",\
      \"query_name\": \"Työmääräin tekemättä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myynti / pv / tuote\",\
      \"list_name\": \"Toimitetut myyntirivit/jakso\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hansa\",\
      \"list_name\": \"Hansa\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_sor-prev.json";
  };
  [3] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_su.json";
  };
  [4] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tänään maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Tänään maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"3pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==3pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"7pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==7pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki maksettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Maksettavat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kirjatut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kirjattu\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_ap.json";
  };
  [5] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Varastotilanne\",\
      \"list_name\": \"Varastotilanne\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Prodr\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Prodr\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaira\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kairatuotteet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimitukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_sor_DELIVERY\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae ylemmät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae alemmat tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tuotantotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta-hr.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeedActLimit\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tuotanto kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostot kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==ProductCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Töiden h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Töiden_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Mat. h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Mat_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_pr.json";
  };
  [6] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Lista 2\",\
      \"list_name\": \"aLista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wpe.json";
  };
  [7] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_prsu.json";
  };
  [8] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab__cha.json";
  };
  [9] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_ac.json";
  };
  [10] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tarkastukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_checkup.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet hylkykuittaukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_from_failed_window.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/all.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/open_and_recent_finished.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Odottaa hyvitystä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_waiting.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Hyvitys saapunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_arrived.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Export avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_rcl.json";
  };
  [11] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soc.json";
  };
  [12] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soca.json";
  };
  [13] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_supe.json";
  };
  [14] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_top.json";
  };
  [15] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"2005\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tk 2005\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2006\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2006\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2007\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2007\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2008\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2008\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_vo.json";
  };
  [16] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tar.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Av. tarjoukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet til.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet til.\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Itellaan lähetettävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItellaOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskuta toimitetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta_nrx\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskutettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut tilaukset TP\",\
      \"list_name\": \"Lista 2\",\
      \"query_name\": \"Lopetetut tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"AK tilaukset\",\
      \"list_name\": \"Lista 3\",\
      \"query_name\": \"AK tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_so.json";
  };
  [17] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kaikki\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset omat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_omat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset solut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_solut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Alihankinnat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Alihankinnat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei_aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wlg.json";
  };
  [18] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=wos_ OPEN_QRY (kFalse;kTrue)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kriittiset päivät\",\
      \"list_name\": \"Kriittiset päivät\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta UC\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-UC\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta vaihe1\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-vaihe1\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet2\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wos.json";
  };
  [19] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Not delivered pallets\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotDeliveredPallets\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_stpa.json";
  };
  [20] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_suad.json";
  };
  [21] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_coad.json";
  };
  [22] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_cope.json";
  };
  [23] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_co.json";
  };
  [24] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoin myynti\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin myynti\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_do.json";
  };
  [25] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet päätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MainLevel\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Pysäytetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Pysäytetyt\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Lopetetut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Perutut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Perutut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kiireelliset aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotStartedPriority\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Valinnan samat aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedNotStartedSameProducts\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä koko rakenne\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructure\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä alarakenteet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructureLower\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotPrinted\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta alihankkija\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_subcontractor\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. \",\
      \"list_name\": \"\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupAndHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. mukaan\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroup\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. pois\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupsToHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ARCWORLD250\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_ARCWORLD250\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ei-valm.vaih.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_Not05_NotVALMIS\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"BySoft lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToBysoft\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Jälkilaskenta tekemättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Not_in_postcalc\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"wo/tab_test.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut valituista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY_SELECTION(\\\"wo/tab_test_selected.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wo.json";
  };
  [26] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tot. tv\",\
      \"list_name\": \"Työtuntien seuranta\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wpa.json";
  };
  [27] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Orvot (virheelliset)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Orphan\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP-lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Materiaalivirhe\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OrphanMaterial\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Export-import\",\
      \"list_name\": \"Export_import\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wme.json";
  };
  [28] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_appa.json";
  };
  [29] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Yleinen\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Yleinen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuoro\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuoro\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuororaja\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuororaja\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Työntekijä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Työntekijä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kuormitusryhmä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kuormitusryhmä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei käytössä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei käytössä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wcap.json";
  };
  [30] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Late\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Myöh. ei AV\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==LateNotAV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tarjouspyynnöt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OfferRequest\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_por.json";
  };
  [31] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet laskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI AV_MYÖH\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Perittävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI_PERITTÄV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hyv. ja korkolaskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Hyvitys ja korkolaskut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tulostamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tulostamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceAll\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Maestro lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MaestroOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskut lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenInvoiceNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_in.json";
  };
  [32] = {
   ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
   ["name_id"] = "_tab_default.json";
  };
  [33] = {
   ["text_value"] = "{\
  \"tab\":. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600010568870, value SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600010568690, value table: 0x0384ced670. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x60001056b570, value plg4d.executeSqlIn4d. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:21:58 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x016a1dd030. 	8.12.2021 	22:22:59 	lx 	(4. palvelin)

Tcp palvelin 2 ei ole käynnissä. 	8.12.2021 	22:31:40 	_lx_SERVER 	(5. tbl_ 4)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	22:31:47 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = 5432;
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["host"] = "/tmp";
   ["port"] = "";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["host"] = "/var/run/postgresql";
   ["port"] = "";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["driver"] = "postgre";
 ["dbtype"] = "postgre";
};. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x038a5c70b8', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["show"] = "Demo Postgres demo";
 ["status"] = "inactive";
 ["redirect"] = {
  [1] = "";
 };
 ["is_local"] = true;
 ["organization_number"] = 0;
 ["driver"] = "postgre";
 ["organization_text"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["database"] = "fi_demo";
 ["schema"] = "";
 ["connection"] = "postgre-demo";
};. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["timeout"] = 120;
 ["host"] = "/tmp";
 ["connected"] = "2021-12-08 22:31:48";
 ["schema"] = "";
 ["database_id"] = "fi_demo";
 ["organization_id"] = "demo-fi_demo-0";
 ["database"] = "fi_demo";
 ["is_local"] = true;
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["port"] = "";
 ["driver"] = "postgre";
 ["dbtype"] = "postgre";
 ["name"] = "postgre local socket";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["database_user"] = "manage_demo";
};. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0173e5dac0, size: 400. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:31:48 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)

closing socket '150'	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)


error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)


***  there is another instance of this program or some other program using the port 5949  ***  	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	8.12.2021 	22:31:49 	_lx_SERVER 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	8.12.2021 	22:31:49 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0	1. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0173e5dac0. 	8.12.2021 	22:31:49 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	22:31:49 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 ei ole käynnissä. 	8.12.2021 	22:32:00 	_lx_SERVER 	(5. tbl_ 4)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	22:32:06 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["driver"] = "postgre";
 ["connection"] = {
  [1] = {
   ["host"] = "/tmp";
   ["port"] = "";
   ["name"] = "postgre local socket";
  };
  [2] = {
   ["host"] = "/var/run/postgresql";
   ["port"] = "";
   ["name"] = "postgre local socket";
  };
  [3] = {
   ["host"] = "127.0.0.1";
   ["name"] = "postgre local";
  };
  [4] = {
   ["host"] = "host.lima.internal";
   ["name"] = "postgre lima host";
  };
  [5] = {
   ["host"] = "192.168.0.2";
   ["name"] = "postgre .0.2";
  };
  [6] = {
   ["host"] = "192.168.32.5";
   ["name"] = "postgre .32.5";
  };
  [7] = {
   ["host"] = "192.168.32.7";
   ["name"] = "postgre .32.7";
  };
 };
 ["port"] = 5432;
 ["dbtype"] = "postgre";
};. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x038a9e3090', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["organization_number"] = 0;
 ["show"] = "Demo Postgres demo";
 ["status"] = "inactive";
 ["database"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["organization_text"] = "fi_demo";
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["is_local"] = true;
 ["connection"] = "postgre-demo";
};. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["connected"] = "2021-12-08 22:32:08";
 ["connection_timeout"] = 1;
 ["port"] = "";
 ["is_local"] = true;
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["host"] = "/tmp";
 ["database"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["organization_id"] = "demo-fi_demo-0";
 ["password"] = "";
 ["name"] = "postgre local socket";
 ["database_user"] = "manage_demo";
 ["schema"] = "";
 ["timeout"] = 120;
 ["database_id"] = "fi_demo";
};. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0173ebf0b0, size: 400. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

closing socket '151'	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)


error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)


***  there is another instance of this program or some other program using the port 5949  ***  	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	8.12.2021 	22:32:08 	_lx_SERVER 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	8.12.2021 	22:32:08 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0	1. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0173ebf0b0. 	8.12.2021 	22:32:08 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	22:32:08 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 ei ole käynnissä. 	8.12.2021 	22:32:16 	_lx_SERVER 	(5. tbl_ 4)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

dconn.connection() parameter = "nil". 	8.12.2021 	22:32:45 	lx 	(1. Application process)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:32:45 	lx 	(1. Application process)

dconn.connection() connPref, before connect() = {
 ["port"] = 5432;
 ["connection"] = {
  [1] = {
   ["host"] = "/tmp";
   ["port"] = "";
   ["name"] = "postgre local socket";
  };
  [2] = {
   ["host"] = "/var/run/postgresql";
   ["port"] = "";
   ["name"] = "postgre local socket";
  };
  [3] = {
   ["host"] = "127.0.0.1";
   ["name"] = "postgre local";
  };
  [4] = {
   ["host"] = "host.lima.internal";
   ["name"] = "postgre lima host";
  };
  [5] = {
   ["host"] = "192.168.0.2";
   ["name"] = "postgre .0.2";
  };
  [6] = {
   ["host"] = "192.168.32.5";
   ["name"] = "postgre .32.5";
  };
  [7] = {
   ["host"] = "192.168.32.7";
   ["name"] = "postgre .32.7";
  };
 };
 ["driver"] = "postgre";
 ["dbtype"] = "postgre";
};. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

physicalConnect driver: 'table: 0x0114c55de8', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

physicalConnect orgPref = {
 ["database"] = "fi_demo";
 ["is_local"] = true;
 ["organization_text"] = "fi_demo";
 ["dbtype"] = "postgre";
 ["organization_number"] = 0;
 ["status"] = "inactive";
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["connection"] = "postgre-demo";
 ["driver"] = "postgre";
 ["show"] = "Demo Postgres demo";
};. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

  database connect time: 0.0005 seconds. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

dconn.connection() connect() after = {
 ["organization_id"] = "demo-fi_demo-0";
 ["database"] = "fi_demo";
 ["connected"] = "2021-12-08 22:32:45";
 ["is_local"] = true;
 ["database_id"] = "fi_demo";
 ["host"] = "/tmp";
 ["name"] = "postgre local socket";
 ["port"] = "";
 ["database_user"] = "manage_demo";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["schema"] = "";
 ["dbtype"] = "postgre";
 ["timeout"] = 120;
 ["driver"] = "postgre";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
};. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	22:32:45 	lx 	(1. Application process)


error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	8.12.2021 	22:32:45 	lx 	(1. Application process)

Tcp server 2 start check: start. 	8.12.2021 	22:32:45 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	22:32:45 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

dconn.connection() parameter = "nil". 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {};. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

dconn.connection() organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["connection"] = {
  [1] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/tmp";
  };
  [2] = {
   ["name"] = "postgre local socket";
   ["port"] = "";
   ["host"] = "/var/run/postgresql";
  };
  [3] = {
   ["name"] = "postgre local";
   ["host"] = "127.0.0.1";
  };
  [4] = {
   ["name"] = "postgre lima host";
   ["host"] = "host.lima.internal";
  };
  [5] = {
   ["name"] = "postgre .0.2";
   ["host"] = "192.168.0.2";
  };
  [6] = {
   ["name"] = "postgre .32.5";
   ["host"] = "192.168.32.5";
  };
  [7] = {
   ["name"] = "postgre .32.7";
   ["host"] = "192.168.32.7";
  };
 };
 ["port"] = 5432;
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
};. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0130500ec8', organizationId: 'demo-fi_demo-0'. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["redirect"] = {
  [1] = "";
 };
 ["schema"] = "";
 ["dbtype"] = "postgre";
 ["connection"] = "postgre-demo";
 ["is_local"] = true;
 ["database"] = "fi_demo";
 ["organization_number"] = 0;
 ["show"] = "Demo Postgres demo";
 ["driver"] = "postgre";
 ["status"] = "inactive";
 ["organization_text"] = "fi_demo";
};. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["connected"] = "2021-12-08 22:32:47";
 ["schema"] = "";
 ["dbtype"] = "postgre";
 ["driver"] = "postgre";
 ["name"] = "postgre local socket";
 ["is_local"] = true;
 ["database"] = "fi_demo";
 ["organization_id"] = "demo-fi_demo-0";
 ["info"] = "postgre local socket, /tmp, database: fi_demo, user: manage_demo";
 ["port"] = "";
 ["database_id"] = "fi_demo";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["database_user"] = "manage_demo";
 ["timeout"] = 120;
 ["host"] = "/tmp";
};. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01203d9cb0, size: 400. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 22:32:47, used memory 3126.5 kb ---	5. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	22:32:47 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 22:32:58
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 510
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dconn.connection() parameter = {
 ["organizationId"] = "plg4d-plg4d-0";
};. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dconn.connection() currentAuthTbl = {
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["valid_until"] = "2021-12-08 23:32:59";
 ["connection"] = "plg4d";
 ["alias_id"] = "4d";
 ["organization_text"] = "0";
 ["database"] = "plg4d";
 ["organization_number"] = 0;
 ["show"] = "plg4d plugin 4d";
 ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
 ["organization_id"] = "plg4d-plg4d-0";
 ["language"] = "fi_fi";
 ["login_id"] = "pasi";
 ["status"] = "inactive";
 ["is_local"] = true;
};. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dconn.connection() organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dconn.connection() loc.logicalConnection[organizationId] = "nil". 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dconn.connection() connPref, before connect() = {
 ["port"] = "";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["connection"] = {
  [1] = {
   ["name"] = "Manageri v12 plg4d local";
   ["host"] = "local";
  };
 };
 ["sql_lower"] = false;
};. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

physicalConnect driver: 'table: 0x0124a012e0', organizationId: 'plg4d-plg4d-0'. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

physicalConnect orgPref = {
 ["redirect"] = {
  [1] = "default";
 };
 ["schema"] = "4d";
 ["dbtype"] = "4d";
 ["connection"] = "plg4d";
 ["organization_text"] = "0";
 ["database"] = "plg4d";
 ["organization_number"] = 0;
 ["show"] = "plg4d plugin 4d";
 ["driver"] = "plg4d";
 ["status"] = "inactive";
};. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dconn.connection() connect() after = {
 ["connected"] = "2021-12-08 22:32:58";
 ["schema"] = "4d";
 ["dbtype"] = "4d";
 ["driver"] = "plg4d";
 ["name"] = "Manageri v12 plg4d local";
 ["info"] = "Manageri v12 plg4d local, local, database: plg4d, user: manage_demo";
 ["database_id"] = "plg4d";
 ["organization_id"] = "plg4d-plg4d-0";
 ["timeout"] = 120;
 ["port"] = "";
 ["connection_timeout"] = 1;
 ["password"] = "";
 ["database_user"] = "manage_demo";
 ["database"] = "plg4d";
 ["host"] = "local";
};. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049388c0, value SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049398b0, value table: 0x013053ee20. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600004938b90, value plg4d.executeSqlIn4d. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:32:58 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:52:27 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:53:48 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x013053ee20. 	8.12.2021 	22:53:48 	_json_ Parse 	(4. palvelin)

querySql4d() querySqlAter = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:53:48 	lx 	(4. palvelin)

querySql4d() return = {
 ["info"] = {
  ["queryTime"] = 30.002733946;
  ["rowCount"] = 2;
  ["columnName"] = {
   [1] = "name_id";
   [2] = "text_value";
  };
  ["columnCount"] = 2;
  ["rowCountTotal"] = 2;
 };
 ["data"] = {
  [1] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_co.json";
  };
  [2] = {
   ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
   ["name_id"] = "_tab_default.json";
  };
 };
};. 	8.12.2021 	22:53:48 	lx 	(4. palvelin)


 1. answer time: 00:00:30.00344
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:53:48 	lx 	(4. palvelin)

 *** sock:send failed with error -1, errno: 32, error 'Broken pipe'	1. 	8.12.2021 	22:53:48 	lx 	(4. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 780 bytes ***	1. 	8.12.2021 	22:53:48 	lx 	(4. palvelin)

closing socket '78'	1. 	8.12.2021 	22:53:48 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049388c0, value SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049398b0, value table: 0x01322f3ca0. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600004938b90, value plg4d.executeSqlIn4d. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:53:57 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:00 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:54:19 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x01322f3ca0. 	8.12.2021 	22:54:19 	_json_ Parse 	(4. palvelin)

querySql4d() querySqlAter = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

querySql4d() return = {
 ["info"] = {
  ["queryTime"] = 0.51929223900015;
  ["rowCount"] = 2;
  ["columnName"] = {
   [1] = "name_id";
   [2] = "text_value";
  };
  ["columnCount"] = 2;
  ["rowCountTotal"] = 2;
 };
 ["data"] = {
  [1] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_co.json";
  };
  [2] = {
   ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
   ["name_id"] = "_tab_default.json";
  };
 };
};. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["database"] = "plg4d";
  ["organization_number"] = 0;
  ["show"] = "plg4d plugin 4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["valid_until"] = "2021-12-08 23:53:59";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_id"] = "plg4d-plg4d-0";
  ["organization_text"] = "0";
 };
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_TAB_TO_JSON";
};. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["database"] = "plg4d";
  ["organization_number"] = 0;
  ["show"] = "plg4d plugin 4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["valid_until"] = "2021-12-08 23:53:59";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_id"] = "plg4d-plg4d-0";
  ["organization_text"] = "0";
 };
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ALP_TO_JSON";
};. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["database"] = "plg4d";
  ["organization_number"] = 0;
  ["show"] = "plg4d plugin 4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["valid_until"] = "2021-12-08 23:53:59";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_id"] = "plg4d-plg4d-0";
  ["organization_text"] = "0";
 };
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ LANG_TO_JSON";
};. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["database"] = "plg4d";
  ["organization_number"] = 0;
  ["show"] = "plg4d plugin 4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["valid_until"] = "2021-12-08 23:53:59";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_id"] = "plg4d-plg4d-0";
  ["organization_text"] = "0";
 };
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ FO_QRY_POP_TO_JSON";
};. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["database"] = "plg4d";
  ["organization_number"] = 0;
  ["show"] = "plg4d plugin 4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["valid_until"] = "2021-12-08 23:53:59";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_id"] = "plg4d-plg4d-0";
  ["organization_text"] = "0";
 };
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_POP_TO_JSON";
};. 	8.12.2021 	22:54:19 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	22:54:20 	_prf_ FO_QRY_POP_TO_JSON 	(10. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:54:20 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:20 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["database"] = "plg4d";
  ["organization_number"] = 0;
  ["show"] = "plg4d plugin 4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["valid_until"] = "2021-12-08 23:53:59";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_id"] = "plg4d-plg4d-0";
  ["organization_text"] = "0";
 };
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ NEW_REC_DEFAULTS_TO_JSON";
};. 	8.12.2021 	22:54:20 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049388c0, value SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049398b0, value table: 0x01317e8af8. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600004938b90, value plg4d.executeSqlIn4d. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:21 	lx 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	22:54:22 	_arr apBlob 	(8. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	22:54:22 	_alpd_DEFINE_ARR_CHECK 	(8. AreaList to Json)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	22:54:23 	_prf_ Data_OLD 	(8. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	22:54:23 	_prf _AlpJsonText 	(8. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	22:54:24 	_arr apBlob 	(8. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	22:54:24 	_arr apBlob 	(8. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	22:54:24 	_prf _AlpJsonText 	(8. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	22:54:24 	_prf_ LANG_TO_JSON 	(9. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	22:54:24 	_prf_ LANG_TO_JSON 	(9. Lang to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	22:54:24 	_prf_ Data_OLD 	(8. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	22:54:24 	_prf _AlpJsonText 	(8. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	22:54:24 	_alpd_DEFINE_ARR_CHECK 	(8. AreaList to Json)

Muuttujan tyyppiä ei ole määritelty <>_prf_apDefValues. 	8.12.2021 	22:54:25 	_prf_ Data_OLD 	(5. New record default to json)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:34 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:54:34 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x01317e8af8. 	8.12.2021 	22:54:34 	_json_ Parse 	(4. palvelin)

querySql4d() querySqlAter = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:34 	lx 	(4. palvelin)

querySql4d() return = {
 ["info"] = {
  ["queryTime"] = 0.33418342200002;
  ["rowCount"] = 39;
  ["columnName"] = {
   [1] = "name_id";
   [2] = "text_value";
  };
  ["columnCount"] = 2;
  ["rowCountTotal"] = 39;
 };
 ["data"] = {
  [1] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Vain päätasot (taso 0)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;1)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki ylätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Alatasot (taso 1)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;2)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki alatasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_w.json";
  };
  [2] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=sor_HAE AVOIMET (False)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet BW,Daewoo\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenLoadgroup_BW,Daewoo\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Toimittamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamatta_vahv_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_vahv_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"AH-myöh.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==AH-myöhässä\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Työmääräin tekemättä\",\
      \"list_name\": \"Työmääräin tekemättä\",\
      \"query_name\": \"Työmääräin tekemättä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myynti / pv / tuote\",\
      \"list_name\": \"Toimitetut myyntirivit/jakso\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hansa\",\
      \"list_name\": \"Hansa\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_sor-prev.json";
  };
  [3] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_su.json";
  };
  [4] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tänään maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Tänään maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"3pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==3pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"7pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==7pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki maksettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Maksettavat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kirjatut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kirjattu\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_ap.json";
  };
  [5] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Varastotilanne\",\
      \"list_name\": \"Varastotilanne\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Prodr\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Prodr\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaira\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kairatuotteet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimitukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_sor_DELIVERY\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae ylemmät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae alemmat tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tuotantotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta-hr.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeedActLimit\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tuotanto kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostot kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==ProductCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Töiden h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Töiden_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Mat. h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Mat_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_pr.json";
  };
  [6] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Lista 2\",\
      \"list_name\": \"aLista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wpe.json";
  };
  [7] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_prsu.json";
  };
  [8] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab__cha.json";
  };
  [9] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_ac.json";
  };
  [10] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tarkastukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_checkup.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet hylkykuittaukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_from_failed_window.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/all.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/open_and_recent_finished.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Odottaa hyvitystä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_waiting.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Hyvitys saapunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_arrived.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Export avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_rcl.json";
  };
  [11] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soc.json";
  };
  [12] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soca.json";
  };
  [13] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_supe.json";
  };
  [14] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_top.json";
  };
  [15] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"2005\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tk 2005\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2006\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2006\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2007\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2007\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2008\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2008\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_vo.json";
  };
  [16] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tar.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Av. tarjoukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet til.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet til.\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Itellaan lähetettävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItellaOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskuta toimitetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta_nrx\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskutettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut tilaukset TP\",\
      \"list_name\": \"Lista 2\",\
      \"query_name\": \"Lopetetut tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"AK tilaukset\",\
      \"list_name\": \"Lista 3\",\
      \"query_name\": \"AK tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_so.json";
  };
  [17] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kaikki\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset omat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_omat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset solut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_solut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Alihankinnat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Alihankinnat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei_aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wlg.json";
  };
  [18] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=wos_ OPEN_QRY (kFalse;kTrue)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kriittiset päivät\",\
      \"list_name\": \"Kriittiset päivät\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta UC\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-UC\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta vaihe1\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-vaihe1\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet2\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wos.json";
  };
  [19] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Not delivered pallets\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotDeliveredPallets\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_stpa.json";
  };
  [20] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_suad.json";
  };
  [21] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_coad.json";
  };
  [22] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_cope.json";
  };
  [23] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_co.json";
  };
  [24] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoin myynti\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin myynti\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_do.json";
  };
  [25] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet päätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MainLevel\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Pysäytetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Pysäytetyt\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Lopetetut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Perutut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Perutut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kiireelliset aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotStartedPriority\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Valinnan samat aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedNotStartedSameProducts\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä koko rakenne\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructure\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä alarakenteet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructureLower\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotPrinted\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta alihankkija\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_subcontractor\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. \",\
      \"list_name\": \"\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupAndHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. mukaan\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroup\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. pois\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupsToHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ARCWORLD250\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_ARCWORLD250\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ei-valm.vaih.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_Not05_NotVALMIS\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"BySoft lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToBysoft\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Jälkilaskenta tekemättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Not_in_postcalc\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"wo/tab_test.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut valituista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY_SELECTION(\\\"wo/tab_test_selected.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wo.json";
  };
  [26] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tot. tv\",\
      \"list_name\": \"Työtuntien seuranta\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wpa.json";
  };
  [27] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Orvot (virheelliset)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Orphan\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP-lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Materiaalivirhe\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OrphanMaterial\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Export-import\",\
      \"list_name\": \"Export_import\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wme.json";
  };
  [28] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_appa.json";
  };
  [29] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Yleinen\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Yleinen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuoro\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuoro\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuororaja\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuororaja\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Työntekijä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Työntekijä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kuormitusryhmä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kuormitusryhmä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei käytössä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei käytössä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wcap.json";
  };
  [30] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Late\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Myöh. ei AV\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==LateNotAV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tarjouspyynnöt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OfferRequest\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_por.json";
  };
  [31] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet laskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI AV_MYÖH\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Perittävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI_PERITTÄV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hyv. ja korkolaskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Hyvitys ja korkolaskut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tulostamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tulostamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceAll\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Maestro lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MaestroOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskut lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenInvoiceNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_in.json";
  };
  [32] = {
   ["text_value"] = "{ \"tab\. 	8.12.2021 	22:54:34 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049388c0, value SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049398b0, value table: 0x01317873f8. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600004938b90, value plg4d.executeSqlIn4d. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:35 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:54:35 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x01317873f8. 	8.12.2021 	22:54:35 	_json_ Parse 	(4. palvelin)

querySql4d() querySqlAter = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)

querySql4d() return = {
 ["info"] = {
  ["queryTime"] = 0.0009205619999193;
  ["rowCount"] = 39;
  ["columnName"] = {
   [1] = "name_id";
   [2] = "text_value";
  };
  ["columnCount"] = 2;
  ["rowCountTotal"] = 39;
 };
 ["data"] = {
  [1] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Vain päätasot (taso 0)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;1)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki ylätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Alatasot (taso 1)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;2)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki alatasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_w.json";
  };
  [2] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=sor_HAE AVOIMET (False)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet BW,Daewoo\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenLoadgroup_BW,Daewoo\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Toimittamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamatta_vahv_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_vahv_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"AH-myöh.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==AH-myöhässä\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Työmääräin tekemättä\",\
      \"list_name\": \"Työmääräin tekemättä\",\
      \"query_name\": \"Työmääräin tekemättä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myynti / pv / tuote\",\
      \"list_name\": \"Toimitetut myyntirivit/jakso\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hansa\",\
      \"list_name\": \"Hansa\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_sor-prev.json";
  };
  [3] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_su.json";
  };
  [4] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tänään maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Tänään maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"3pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==3pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"7pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==7pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki maksettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Maksettavat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kirjatut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kirjattu\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_ap.json";
  };
  [5] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Varastotilanne\",\
      \"list_name\": \"Varastotilanne\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Prodr\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Prodr\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaira\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kairatuotteet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimitukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_sor_DELIVERY\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae ylemmät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae alemmat tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tuotantotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta-hr.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeedActLimit\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tuotanto kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostot kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==ProductCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Töiden h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Töiden_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Mat. h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Mat_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_pr.json";
  };
  [6] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Lista 2\",\
      \"list_name\": \"aLista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wpe.json";
  };
  [7] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_prsu.json";
  };
  [8] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab__cha.json";
  };
  [9] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_ac.json";
  };
  [10] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tarkastukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_checkup.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet hylkykuittaukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_from_failed_window.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/all.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/open_and_recent_finished.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Odottaa hyvitystä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_waiting.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Hyvitys saapunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_arrived.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Export avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_rcl.json";
  };
  [11] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soc.json";
  };
  [12] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soca.json";
  };
  [13] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_supe.json";
  };
  [14] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_top.json";
  };
  [15] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"2005\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tk 2005\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2006\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2006\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2007\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2007\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2008\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2008\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_vo.json";
  };
  [16] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tar.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Av. tarjoukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet til.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet til.\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Itellaan lähetettävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItellaOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskuta toimitetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta_nrx\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskutettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut tilaukset TP\",\
      \"list_name\": \"Lista 2\",\
      \"query_name\": \"Lopetetut tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"AK tilaukset\",\
      \"list_name\": \"Lista 3\",\
      \"query_name\": \"AK tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_so.json";
  };
  [17] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kaikki\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset omat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_omat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset solut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_solut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Alihankinnat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Alihankinnat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei_aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wlg.json";
  };
  [18] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=wos_ OPEN_QRY (kFalse;kTrue)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kriittiset päivät\",\
      \"list_name\": \"Kriittiset päivät\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta UC\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-UC\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta vaihe1\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-vaihe1\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet2\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wos.json";
  };
  [19] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Not delivered pallets\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotDeliveredPallets\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_stpa.json";
  };
  [20] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_suad.json";
  };
  [21] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_coad.json";
  };
  [22] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_cope.json";
  };
  [23] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_co.json";
  };
  [24] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoin myynti\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin myynti\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_do.json";
  };
  [25] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet päätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MainLevel\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Pysäytetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Pysäytetyt\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Lopetetut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Perutut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Perutut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kiireelliset aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotStartedPriority\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Valinnan samat aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedNotStartedSameProducts\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä koko rakenne\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructure\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä alarakenteet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructureLower\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotPrinted\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta alihankkija\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_subcontractor\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. \",\
      \"list_name\": \"\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupAndHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. mukaan\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroup\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. pois\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupsToHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ARCWORLD250\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_ARCWORLD250\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ei-valm.vaih.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_Not05_NotVALMIS\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"BySoft lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToBysoft\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Jälkilaskenta tekemättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Not_in_postcalc\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"wo/tab_test.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut valituista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY_SELECTION(\\\"wo/tab_test_selected.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wo.json";
  };
  [26] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tot. tv\",\
      \"list_name\": \"Työtuntien seuranta\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wpa.json";
  };
  [27] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Orvot (virheelliset)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Orphan\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP-lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Materiaalivirhe\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OrphanMaterial\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Export-import\",\
      \"list_name\": \"Export_import\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wme.json";
  };
  [28] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_appa.json";
  };
  [29] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Yleinen\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Yleinen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuoro\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuoro\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuororaja\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuororaja\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Työntekijä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Työntekijä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kuormitusryhmä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kuormitusryhmä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei käytössä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei käytössä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wcap.json";
  };
  [30] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Late\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Myöh. ei AV\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==LateNotAV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tarjouspyynnöt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OfferRequest\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_por.json";
  };
  [31] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet laskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI AV_MYÖH\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Perittävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI_PERITTÄV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hyv. ja korkolaskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Hyvitys ja korkolaskut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tulostamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tulostamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceAll\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Maestro lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MaestroOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskut lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenInvoiceNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_in.json";
  };
  [32] = {
   ["text_value"] = "{ \"ta. 	8.12.2021 	22:54:35 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049388c0, value SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049398b0, value table: 0x01314d2098. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600004938b90, value plg4d.executeSqlIn4d. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:36 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:54:36 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x01314d2098. 	8.12.2021 	22:54:36 	_json_ Parse 	(4. palvelin)

querySql4d() querySqlAter = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

querySql4d() return = {
 ["info"] = {
  ["queryTime"] = 0.00083584300000439;
  ["rowCount"] = 39;
  ["columnName"] = {
   [1] = "name_id";
   [2] = "text_value";
  };
  ["columnCount"] = 2;
  ["rowCountTotal"] = 39;
 };
 ["data"] = {
  [1] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Vain päätasot (taso 0)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;1)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki ylätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Alatasot (taso 1)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;2)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki alatasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_w.json";
  };
  [2] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=sor_HAE AVOIMET (False)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet BW,Daewoo\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenLoadgroup_BW,Daewoo\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Toimittamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamatta_vahv_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_vahv_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"AH-myöh.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==AH-myöhässä\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Työmääräin tekemättä\",\
      \"list_name\": \"Työmääräin tekemättä\",\
      \"query_name\": \"Työmääräin tekemättä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myynti / pv / tuote\",\
      \"list_name\": \"Toimitetut myyntirivit/jakso\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hansa\",\
      \"list_name\": \"Hansa\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_sor-prev.json";
  };
  [3] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_su.json";
  };
  [4] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tänään maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Tänään maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"3pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==3pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"7pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==7pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki maksettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Maksettavat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kirjatut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kirjattu\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_ap.json";
  };
  [5] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Varastotilanne\",\
      \"list_name\": \"Varastotilanne\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Prodr\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Prodr\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaira\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kairatuotteet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimitukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_sor_DELIVERY\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae ylemmät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae alemmat tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tuotantotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta-hr.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeedActLimit\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tuotanto kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostot kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==ProductCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Töiden h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Töiden_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Mat. h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Mat_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_pr.json";
  };
  [6] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Lista 2\",\
      \"list_name\": \"aLista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wpe.json";
  };
  [7] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_prsu.json";
  };
  [8] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab__cha.json";
  };
  [9] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_ac.json";
  };
  [10] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tarkastukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_checkup.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet hylkykuittaukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_from_failed_window.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/all.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/open_and_recent_finished.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Odottaa hyvitystä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_waiting.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Hyvitys saapunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_arrived.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Export avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_rcl.json";
  };
  [11] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soc.json";
  };
  [12] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soca.json";
  };
  [13] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_supe.json";
  };
  [14] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_top.json";
  };
  [15] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"2005\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tk 2005\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2006\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2006\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2007\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2007\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2008\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2008\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_vo.json";
  };
  [16] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tar.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Av. tarjoukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet til.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet til.\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Itellaan lähetettävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItellaOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskuta toimitetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta_nrx\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskutettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut tilaukset TP\",\
      \"list_name\": \"Lista 2\",\
      \"query_name\": \"Lopetetut tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"AK tilaukset\",\
      \"list_name\": \"Lista 3\",\
      \"query_name\": \"AK tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_so.json";
  };
  [17] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kaikki\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset omat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_omat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset solut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_solut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Alihankinnat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Alihankinnat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei_aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wlg.json";
  };
  [18] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=wos_ OPEN_QRY (kFalse;kTrue)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kriittiset päivät\",\
      \"list_name\": \"Kriittiset päivät\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta UC\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-UC\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta vaihe1\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-vaihe1\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet2\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wos.json";
  };
  [19] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Not delivered pallets\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotDeliveredPallets\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_stpa.json";
  };
  [20] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_suad.json";
  };
  [21] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_coad.json";
  };
  [22] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_cope.json";
  };
  [23] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_co.json";
  };
  [24] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoin myynti\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin myynti\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_do.json";
  };
  [25] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet päätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MainLevel\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Pysäytetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Pysäytetyt\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Lopetetut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Perutut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Perutut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kiireelliset aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotStartedPriority\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Valinnan samat aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedNotStartedSameProducts\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä koko rakenne\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructure\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä alarakenteet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructureLower\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotPrinted\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta alihankkija\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_subcontractor\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. \",\
      \"list_name\": \"\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupAndHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. mukaan\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroup\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. pois\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupsToHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ARCWORLD250\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_ARCWORLD250\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ei-valm.vaih.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_Not05_NotVALMIS\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"BySoft lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToBysoft\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Jälkilaskenta tekemättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Not_in_postcalc\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"wo/tab_test.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut valituista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY_SELECTION(\\\"wo/tab_test_selected.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wo.json";
  };
  [26] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tot. tv\",\
      \"list_name\": \"Työtuntien seuranta\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wpa.json";
  };
  [27] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Orvot (virheelliset)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Orphan\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP-lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Materiaalivirhe\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OrphanMaterial\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Export-import\",\
      \"list_name\": \"Export_import\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wme.json";
  };
  [28] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_appa.json";
  };
  [29] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Yleinen\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Yleinen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuoro\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuoro\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuororaja\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuororaja\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Työntekijä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Työntekijä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kuormitusryhmä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kuormitusryhmä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei käytössä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei käytössä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wcap.json";
  };
  [30] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Late\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Myöh. ei AV\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==LateNotAV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tarjouspyynnöt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OfferRequest\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_por.json";
  };
  [31] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet laskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI AV_MYÖH\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Perittävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI_PERITTÄV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hyv. ja korkolaskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Hyvitys ja korkolaskut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tulostamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tulostamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceAll\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Maestro lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MaestroOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskut lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenInvoiceNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_in.json";
  };
  [32] = {
   ["text_value"] = "{ \"t. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049388c0, value SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049398b0, value table: 0x013054b230. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600004938b90, value plg4d.executeSqlIn4d. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:36 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:54:36 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x013054b230. 	8.12.2021 	22:54:36 	_json_ Parse 	(4. palvelin)

querySql4d() querySqlAter = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)

querySql4d() return = {
 ["info"] = {
  ["queryTime"] = 0.0013164739998501;
  ["rowCount"] = 39;
  ["columnName"] = {
   [1] = "name_id";
   [2] = "text_value";
  };
  ["columnCount"] = 2;
  ["rowCountTotal"] = 39;
 };
 ["data"] = {
  [1] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Vain päätasot (taso 0)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;1)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki ylätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Alatasot (taso 1)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;2)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki alatasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(w_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_w.json";
  };
  [2] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=sor_HAE AVOIMET (False)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet BW,Daewoo\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenLoadgroup_BW,Daewoo\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Toimittamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Toimittamatta_vahv_pv\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta_vahv_pv\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"AH-myöh.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==AH-myöhässä\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Työmääräin tekemättä\",\
      \"list_name\": \"Työmääräin tekemättä\",\
      \"query_name\": \"Työmääräin tekemättä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myynti / pv / tuote\",\
      \"list_name\": \"Toimitetut myyntirivit/jakso\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hansa\",\
      \"list_name\": \"Hansa\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_sor-prev.json";
  };
  [3] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_su.json";
  };
  [4] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tänään maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Tänään maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"3pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==3pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"7pv maksuun\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==7pv maksuun\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki maksettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Maksettavat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kirjatut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kirjattu\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_ap.json";
  };
  [5] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Varastotilanne\",\
      \"list_name\": \"Varastotilanne\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Prodr\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Prodr\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaira\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Kairatuotteet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimitukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_sor_DELIVERY\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae ylemmät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;1;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hae alemmat tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;2;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki liittyvät tasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=pr_ TREE_QRY(pr_kTbl;3;kAll)\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Piirustus puuttuu\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==DrawingMissing\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tuotantotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeed\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostotarvetta-hr.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==PurchaseOrderNeedActLimit\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tuotanto kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==WorkOrderCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Ostot kr. alkupv + 5\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==ProductCrStartDate5\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Töiden h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Töiden_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Mat. h.raja alittunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Mat_hälraja_alittunut\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_pr.json";
  };
  [6] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Lista 2\",\
      \"list_name\": \"aLista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"C9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wpe.json";
  };
  [7] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_prsu.json";
  };
  [8] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab__cha.json";
  };
  [9] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_ac.json";
  };
  [10] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tarkastukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_checkup.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet hylkykuittaukset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/open_from_failed_window.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"rcl/all.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/open_and_recent_finished.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Odottaa hyvitystä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_waiting.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Hyvitys saapunut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"manager/product/reclamation/supplier_compansation_arrived.json\\\")\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Export avoimet ja viim. lopetetut\",\
      \"list_name\": \"Avoimet_ja_vuoden_lopetetut\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_rcl.json";
  };
  [11] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soc.json";
  };
  [12] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_soca.json";
  };
  [13] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_supe.json";
  };
  [14] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_top.json";
  };
  [15] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"2005\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tk 2005\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2006\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2006\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2007\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2007\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"2008\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"TK 2008\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_vo.json";
  };
  [16] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tar.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Av. tarjoukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet til.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet til.\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Itellaan lähetettävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItella\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Itellaan lähetetyt avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SentToItellaOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskuta toimitetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta_nrx\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskutettavat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimitettu laskuttamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut tilaukset TP\",\
      \"list_name\": \"Lista 2\",\
      \"query_name\": \"Lopetetut tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Toimittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Toimittamatta\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"AK tilaukset\",\
      \"list_name\": \"Lista 3\",\
      \"query_name\": \"AK tilaukset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_so.json";
  };
  [17] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kaikki\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset omat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_omat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Aktiiviset solut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Aktiiviset_solut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Alihankinnat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Alihankinnat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei aktiiviset\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei_aktiiviset\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_wlg.json";
  };
  [18] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=wos_ OPEN_QRY (kFalse;kTrue)\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kriittiset päivät\",\
      \"list_name\": \"Kriittiset päivät\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta UC\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-UC\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet tulostamatta vaihe1\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted-vaihe1\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet2\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wos.json";
  };
  [19] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Not delivered pallets\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotDeliveredPallets\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_stpa.json";
  };
  [20] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_suad.json";
  };
  [21] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_coad.json";
  };
  [22] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_cope.json";
  };
  [23] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_co.json";
  };
  [24] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoin myynti\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoin myynti\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_do.json";
  };
  [25] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Avoimet päätasot\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MainLevel\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Pysäytetyt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Pysäytetyt\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Lopetetut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Perutut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Perutut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kiireelliset aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotStartedPriority\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Valinnan samat aloittamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedNotStartedSameProducts\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä koko rakenne\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructure\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Näytä alarakenteet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SelectedSameStructureLower\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==NotPrinted\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta alihankkija\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_subcontractor\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. \",\
      \"list_name\": \"\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupAndHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. mukaan\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroup\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta kr. pois\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_AskLoadgroupsToHide\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ARCWORLD250\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_ARCWORLD250\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tulostamatta ei-valm.vaih.\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenNotPrinted_Not05_NotVALMIS\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"BySoft lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==SendToBysoft\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Jälkilaskenta tekemättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Not_in_postcalc\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY(\\\"wo/tab_test.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"lx-lopetetut valituista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=_lx_ QUERY_SELECTION(\\\"wo/tab_test_selected.json\\\")\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wo.json";
  };
  [26] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tot. tv\",\
      \"list_name\": \"Työtuntien seuranta\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet\",\
      \"list_name\": \"Lista2\",\
      \"query_name\": \"==Open\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wpa.json";
  };
  [27] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Orvot (virheelliset)\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Orphan\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"C9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"SOP\",\
      \"list_name\": \"SOP-lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Materiaalivirhe\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OrphanMaterial\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Export-import\",\
      \"list_name\": \"Export_import\",\
      \"query_name\": \"\",\
      \"query_type\": \"Luo uusi valinta\"\
    }]\
}";
   ["name_id"] = "_tab_wme.json";
  };
  [28] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_appa.json";
  };
  [29] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Yleinen\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Yleinen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuoro\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuoro\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Vuororaja\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Vuororaja\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Työntekijä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Työntekijä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Kuormitusryhmä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Kuormitusryhmä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Ei käytössä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Ei käytössä\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_wcap.json";
  };
  [30] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==Late\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Myöh. ei AV\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==LateNotAV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Tarjouspyynnöt\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OfferRequest\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_por.json";
  };
  [31] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Avoimet laskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Avoimet\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Myöhässä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI AV_MYÖH\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Perittävät\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"=in_ETSI_PERITTÄV\",\
      \"query_type\": \"Luo uusi valinta\"\
    }, {\
      \"name\": \"Hyv. ja korkolaskut\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Hyvitys ja korkolaskut\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Tulostamattomat\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"Tulostamattomat\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice kaikki\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceAll\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice avoimet\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpen\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Finvoice lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==FinvoiceOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Maestro lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==MaestroOpenNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"Laskut lähettämättä\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"==OpenInvoiceNotSent\",\
      \"query_type\": \"Etsi valinnasta\"\
    }]\
}";
   ["name_id"] = "_tab_in.json";
  };
  [32] = {
   ["text_value"] = "{ \"ta. 	8.12.2021 	22:54:36 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["sql"] = "INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{\
\"tab\": [\
{\
\"name\": \"Lista\",\
\"query_type\": \"\",\
\"query_name\": \"\",\
\"list_name\": \"Lista\"\
}\
]\
}')";
 ["query_name"] = "dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["sql"] = "INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{\
\"tab\": [\
{\
\"name\": \"Lista\",\
\"query_type\": \"\",\
\"query_name\": \"\",\
\"list_name\": \"Lista\"\
}\
]\
}')";
 ["query_name"] = "dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["sql"] = "INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{\
\"tab\": [\
{\
\"name\": \"Lista\",\
\"query_type\": \"\",\
\"query_name\": \"\",\
\"list_name\": \"Lista\"\
}\
]\
}')";
 ["query_name"] = "dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"name": "Lista","query_type": "","query_name": "","list_name": "List...	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}'). 	8.12.2021 	22:54:37 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}')'. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049388c0, value INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}'). 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049398b0, value . 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600004938b90, value plg4d.executeSqlIn4d. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}'). 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  , sql:  INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}'). 	8.12.2021 	22:54:37 	_lx_ExecuteSqlNew 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "name": "Lista", "query_type": "", "query_name": "", "list_name": "Lista" } ] }')
 - result _lx_atExe1 size: 0
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:54:37 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}')
'
 	8.12.2021 	22:54:37 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}')


	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

querySql4d() querySqlAter = {
 ["sql"] = "INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{\
\"tab\": [\
{\
\"name\": \"Lista\",\
\"query_type\": \"\",\
\"query_name\": \"\",\
\"list_name\": \"Lista\"\
}\
]\
}')";
 ["query_name"] = "dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

querySql4d() return = {
 ["info"] = {
  ["error"] = "4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)\
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)\
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)\
Failed to execute INSERT command. (SQLS 1802)\
Failed to execute INSERT command. (dbmg 1248)\
\
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{\
\"tab\": [\
{\
\"name\": \"Lista\",\
\"query_type\": \"\",\
\"query_name\": \"\",\
\"list_name\": \"Lista\"\
}\
]\
}')";
  ["queryTime"] = 0.0005455069999698;
 };
 ["data"] = {};
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"name": "Lista",
"query_type": "",
"query_name": "",
"list_name": "Lista"
}
]
}'). 	8.12.2021 	22:54:37 	_lx_SERVER 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049388c0, value SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049398b0, value table: 0x01305552b0. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600004938b90, value plg4d.executeSqlIn4d. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:54:37 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:54:37 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x01305552b0. 	8.12.2021 	22:54:37 	_json_ Parse 	(4. palvelin)

querySql4d() querySqlAter = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

querySql4d() return = {
 ["info"] = {
  ["queryTime"] = 0.00043815900016853;
  ["rowCount"] = 2;
  ["columnName"] = {
   [1] = "name_id";
   [2] = "text_value";
  };
  ["columnCount"] = 2;
  ["rowCountTotal"] = 2;
 };
 ["data"] = {
  [1] = {
   ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
   ["name_id"] = "_tab_co.json";
  };
  [2] = {
   ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
   ["name_id"] = "_tab_default.json";
  };
 };
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

call4dFunction = {
 ["parameter"] = {
  ["print_error"] = false;
  ["tab_name"] = "list";
  ["table_prefix"] = "co";
  ["query_name"] = "";
  ["record_type"] = "customer";
  ["tab_query"] = "";
  ["table"] = "company";
  ["organization_id"] = "4d";
 };
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["language"] = "fi_fi";
  ["connection"] = "plg4d";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["database"] = "plg4d";
  ["organization_number"] = 0;
  ["show"] = "plg4d plugin 4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["valid_until"] = "2021-12-08 23:53:59";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_id"] = "plg4d-plg4d-0";
  ["organization_text"] = "0";
 };
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "tabDefinition";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

use plg4d, orgId: demo-4d-0, orgIdFull: demo-4d-0. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

querySql4d() sqlExecuteUnsafe = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "date";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
 };
 ["field"] = {
  [1] = "co.name";
  [2] = "co.company_number";
  [3] = "co.email";
  [4] = "co.record_id";
  [5] = "co.language";
  [6] = "co.invoice_company_id";
  [7] = "co.info";
  [8] = "co.creation_date";
  [9] = "co.country";
  [10] = "co.terms_of_payment_id";
  [11] = "co.change_id";
  [12] = "co.sales_order_code_id";
  [13] = "co.name";
  [14] = "co.name_2";
  [15] = "co.post_code";
 };
 ["sql"] = "SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "date";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
 };
 ["field"] = {
  [1] = "co.name";
  [2] = "co.company_number";
  [3] = "co.email";
  [4] = "co.record_id";
  [5] = "co.language";
  [6] = "co.invoice_company_id";
  [7] = "co.info";
  [8] = "co.creation_date";
  [9] = "co.country";
  [10] = "co.terms_of_payment_id";
  [11] = "co.change_id";
  [12] = "co.sales_order_code_id";
  [13] = "co.name";
  [14] = "co.name_2";
  [15] = "co.post_code";
 };
 ["sql"] = "SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql - sqlExecuteUnsafe option 2 = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "date";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
 };
 ["field"] = {
  [1] = "co.name";
  [2] = "co.company_number";
  [3] = "co.email";
  [4] = "co.record_id";
  [5] = "co.language";
  [6] = "co.invoice_company_id";
  [7] = "co.info";
  [8] = "co.creation_date";
  [9] = "co.country";
  [10] = "co.terms_of_payment_id";
  [11] = "co.change_id";
  [12] = "co.sales_order_code_id";
  [13] = "co.name";
  [14] = "co.name_2";
  [15] = "co.post_code";
 };
 ["sql"] = "SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

from4d sqlQueryExecute queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000'. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() param = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d execute param = "plg4d". 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049388c0, value SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x6000049398b0, value table: 0x013053de18. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement ar.fType 34, C.eVK_ArrayUnicode 34. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

setArrayStringElement arr cdata<struct 1381 *>: 0x600004938b90, value plg4d.executeSqlIn4d. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14. 	8.12.2021 	22:54:37 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
, sql:  SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14. 	8.12.2021 	22:54:37 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name,  co.company_number,  co.email,  co.record_id,  co.language,  co.invoice_company_id,  co.info,  co.creation_date,  co.country,  co.terms_of_payment_id,  co.change_id,  co.sales_order_code_id,  co.name_2,  co.post_code  FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:54:37 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x013053de18. 	8.12.2021 	22:54:37 	_json_ Parse 	(4. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 999 bytes ***	1. 	8.12.2021 	22:54:58 	lx 	(4. palvelin)

closing socket '78'	1. 	8.12.2021 	22:54:58 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	22:57:50 	_lx_SERVER 	(5. tbl_ 6)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	22:57:50 	lx 	(4. palvelin)

closing socket '73'	1. 	8.12.2021 	22:57:50 	lx 	(4. palvelin)

*** tcp close for sock 74, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	22:57:50 	lx 	(4. palvelin)

closing socket '74'	1. 	8.12.2021 	22:57:50 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          16
poll.fd_count:        0
pollCount:            15369
pollInCount:          17
pollOutCount:         0
pollCloseCount:       2
pollErrCount:         0
fd add/remove count:  4/4
totalBytesReceived:   11895
totalBytesSent:       28280	1. 	8.12.2021 	22:57:50 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	22:57:50 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01203d9cb0. 	8.12.2021 	22:57:50 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	22:57:50 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	22:57:56 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01217127e0, size: 400. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 22:57:57, used memory 2992.3 kb ---	5. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	22:57:57 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 22:58:07
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 503
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

plg4d execute option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:07 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:58:07 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x015e892218. 	8.12.2021 	22:58:07 	_json_ Parse 	(4. palvelin)


 1. answer time: 00:00:00.00134
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["status"] = "inactive";
  ["organization_id"] = "plg4d-plg4d-0";
  ["valid_until"] = "2021-12-08 23:58:09";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["show"] = "plg4d plugin 4d";
  ["connection"] = "plg4d";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["alias_id"] = "4d";
 };
 ["call"] = "_prf_TAB_TO_JSON";
 ["sql"] = "CALL_4D_FUNCTION";
};. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["status"] = "inactive";
  ["organization_id"] = "plg4d-plg4d-0";
  ["valid_until"] = "2021-12-08 23:58:09";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["show"] = "plg4d plugin 4d";
  ["connection"] = "plg4d";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["alias_id"] = "4d";
 };
 ["call"] = "_prf_ALP_TO_JSON";
 ["sql"] = "CALL_4D_FUNCTION";
};. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["status"] = "inactive";
  ["organization_id"] = "plg4d-plg4d-0";
  ["valid_until"] = "2021-12-08 23:58:09";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["show"] = "plg4d plugin 4d";
  ["connection"] = "plg4d";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["alias_id"] = "4d";
 };
 ["call"] = "_prf_ LANG_TO_JSON";
 ["sql"] = "CALL_4D_FUNCTION";
};. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["status"] = "inactive";
  ["organization_id"] = "plg4d-plg4d-0";
  ["valid_until"] = "2021-12-08 23:58:09";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["show"] = "plg4d plugin 4d";
  ["connection"] = "plg4d";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["alias_id"] = "4d";
 };
 ["call"] = "_prf_ FO_QRY_POP_TO_JSON";
 ["sql"] = "CALL_4D_FUNCTION";
};. 	8.12.2021 	22:58:07 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:58:08 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["status"] = "inactive";
  ["organization_id"] = "plg4d-plg4d-0";
  ["valid_until"] = "2021-12-08 23:58:09";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["show"] = "plg4d plugin 4d";
  ["connection"] = "plg4d";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["alias_id"] = "4d";
 };
 ["call"] = "_prf_POP_TO_JSON";
 ["sql"] = "CALL_4D_FUNCTION";
};. 	8.12.2021 	22:58:08 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:58:08 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["status"] = "inactive";
  ["organization_id"] = "plg4d-plg4d-0";
  ["valid_until"] = "2021-12-08 23:58:09";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["show"] = "plg4d plugin 4d";
  ["connection"] = "plg4d";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["alias_id"] = "4d";
 };
 ["call"] = "_prf_ NEW_REC_DEFAULTS_TO_JSON";
 ["sql"] = "CALL_4D_FUNCTION";
};. 	8.12.2021 	22:58:08 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	22:58:08 	_prf_ FO_QRY_POP_TO_JSON 	(11. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d execute option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:09 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:58:09 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x015e807fb8. 	8.12.2021 	22:58:09 	_json_ Parse 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d execute option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:09 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:09 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:58:09 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x015e82ef80. 	8.12.2021 	22:58:09 	_json_ Parse 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	22:58:10 	_arr apBlob 	(9. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	22:58:10 	_alpd_DEFINE_ARR_CHECK 	(9. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

plg4d execute option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:10 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:10 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:58:10 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x015e7fc568. 	8.12.2021 	22:58:10 	_json_ Parse 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d execute option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:11 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:58:11 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x015e88f888. 	8.12.2021 	22:58:11 	_json_ Parse 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"query_type": "","query_name": "","list_name": "Lista","name": "List...	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"list_name": "Lista",
"name": "Lista"
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"list_name": "Lista",
"name": "Lista"
}
]
}')'. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{\
\"tab\": [\
{\
\"query_type\": \"\",\
\"query_name\": \"\",\
\"list_name\": \"Lista\",\
\"name\": \"Lista\"\
}\
]\
}')";
 ["query_name"] = "dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d execute option = {
 ["sql"] = "INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{\
\"tab\": [\
{\
\"query_type\": \"\",\
\"query_name\": \"\",\
\"list_name\": \"Lista\",\
\"name\": \"Lista\"\
}\
]\
}')";
 ["query_name"] = "dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"list_name": "Lista",
"name": "Lista"
}
]
}'). 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  , sql:  INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"list_name": "Lista",
"name": "Lista"
}
]
}'). 	8.12.2021 	22:58:11 	_lx_ExecuteSqlNew 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "query_type": "", "query_name": "", "list_name": "Lista", "name": "Lista" } ] }')
 - result _lx_atExe1 size: 0
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:58:11 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"list_name": "Lista",
"name": "Lista"
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"list_name": "Lista",
"name": "Lista"
}
]
}')
'
 	8.12.2021 	22:58:11 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"list_name": "Lista",
"name": "Lista"
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"list_name": "Lista",
"name": "Lista"
}
]
}')


	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d execute option = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  name_id, text_value, sql:  SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	22:58:11 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id,  text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:58:11 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x015e775e88. 	8.12.2021 	22:58:11 	_json_ Parse 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["parameter"] = {
  ["table_prefix"] = "co";
  ["record_type"] = "customer";
  ["tab_name"] = "list";
  ["table"] = "company";
  ["tab_query"] = "";
  ["print_error"] = false;
  ["query_name"] = "";
  ["organization_id"] = "4d";
 };
 ["call"] = "tabDefinition";
 ["auth"] = {
  ["redirect"] = {
   [1] = "default";
  };
  ["schema"] = "4d";
  ["status"] = "inactive";
  ["organization_id"] = "plg4d-plg4d-0";
  ["valid_until"] = "2021-12-08 23:58:09";
  ["database"] = "plg4d";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["show"] = "plg4d plugin 4d";
  ["connection"] = "plg4d";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["login_id"] = "pasi";
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["alias_id"] = "4d";
 };
};. 	8.12.2021 	22:58:11 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000'. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.name";
  [2] = "co.company_number";
  [3] = "co.email";
  [4] = "co.record_id";
  [5] = "co.language";
  [6] = "co.invoice_company_id";
  [7] = "co.info";
  [8] = "co.creation_date";
  [9] = "co.country";
  [10] = "co.terms_of_payment_id";
  [11] = "co.change_id";
  [12] = "co.sales_order_code_id";
  [13] = "co.name";
  [14] = "co.name_2";
  [15] = "co.post_code";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "date";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

plg4d execute option = {
 ["sql"] = "SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.name";
  [2] = "co.company_number";
  [3] = "co.email";
  [4] = "co.record_id";
  [5] = "co.language";
  [6] = "co.invoice_company_id";
  [7] = "co.info";
  [8] = "co.creation_date";
  [9] = "co.country";
  [10] = "co.terms_of_payment_id";
  [11] = "co.change_id";
  [12] = "co.sales_order_code_id";
  [13] = "co.name";
  [14] = "co.name_2";
  [15] = "co.post_code";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "date";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
};. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil". 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14. 	8.12.2021 	22:58:12 	lx 	(4. palvelin)

*** Sql table parameter $7 error, field list is empty, generated fields:  co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
, sql:  SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14. 	8.12.2021 	22:58:12 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name,  co.company_number,  co.email,  co.record_id,  co.language,  co.invoice_company_id,  co.info,  co.creation_date,  co.country,  co.terms_of_payment_id,  co.change_id,  co.sales_order_code_id,  co.name_2,  co.post_code  FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	22:58:12 	_lx_ExecuteSqlNew 	(4. palvelin)

Json parsiminen epäonnistui asetukselle: table: 0x015e4fcc00. 	8.12.2021 	22:58:12 	_json_ Parse 	(4. palvelin)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	22:58:12 	_prf_ Data_OLD 	(9. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	22:58:12 	_prf _AlpJsonText 	(9. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	22:58:12 	_arr apBlob 	(9. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	22:58:12 	_arr apBlob 	(9. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	22:58:12 	_prf _AlpJsonText 	(9. AreaList to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	22:58:13 	_prf_ Data_OLD 	(9. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	22:58:13 	_prf _AlpJsonText 	(9. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	22:58:13 	_prf_ LANG_TO_JSON 	(10. Lang to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	22:58:13 	_alpd_DEFINE_ARR_CHECK 	(9. AreaList to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	22:58:13 	_prf_ LANG_TO_JSON 	(10. Lang to Json)

*** tcp close for sock 79, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 007 bytes ***	1. 	8.12.2021 	22:58:22 	lx 	(4. palvelin)

closing socket '79'	1. 	8.12.2021 	22:58:22 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	23:12:36 	_lx_SERVER 	(5. tbl_ 6)

*** tcp close for sock 74, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	23:12:36 	lx 	(4. palvelin)

closing socket '74'	1. 	8.12.2021 	23:12:36 	lx 	(4. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	23:12:36 	lx 	(4. palvelin)

closing socket '78'	1. 	8.12.2021 	23:12:36 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          15
poll.fd_count:        0
pollCount:            61377
pollInCount:          15
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   11095
totalBytesSent:       28305	1. 	8.12.2021 	23:12:36 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	23:12:36 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01217127e0. 	8.12.2021 	23:12:36 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	23:12:36 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	23:12:42 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01217127e0, size: 400. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 23:12:44, used memory 2996.3 kb ---	5. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	23:12:44 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 23:12:50
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 511
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:12:50 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:13:00 	_lx_ExecuteSqlNew 	(4. palvelin)


 1. answer time: 00:00:00.25191
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:13:00 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:13:00 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_TAB_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["redirect"] = {
   [1] = "default";
  };
  ["show"] = "plg4d plugin 4d";
  ["language"] = "fi_fi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["valid_until"] = "2021-12-09 00:12:52";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["connection"] = "plg4d";
 };
};. 	8.12.2021 	23:13:00 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:13:00 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ALP_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["redirect"] = {
   [1] = "default";
  };
  ["show"] = "plg4d plugin 4d";
  ["language"] = "fi_fi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["valid_until"] = "2021-12-09 00:12:52";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["connection"] = "plg4d";
 };
};. 	8.12.2021 	23:13:00 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:13:00 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ LANG_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["redirect"] = {
   [1] = "default";
  };
  ["show"] = "plg4d plugin 4d";
  ["language"] = "fi_fi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["valid_until"] = "2021-12-09 00:12:52";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["connection"] = "plg4d";
 };
};. 	8.12.2021 	23:13:00 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:13:01 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ FO_QRY_POP_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["redirect"] = {
   [1] = "default";
  };
  ["show"] = "plg4d plugin 4d";
  ["language"] = "fi_fi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["valid_until"] = "2021-12-09 00:12:52";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["connection"] = "plg4d";
 };
};. 	8.12.2021 	23:13:01 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:13:01 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_POP_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["redirect"] = {
   [1] = "default";
  };
  ["show"] = "plg4d plugin 4d";
  ["language"] = "fi_fi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["valid_until"] = "2021-12-09 00:12:52";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["connection"] = "plg4d";
 };
};. 	8.12.2021 	23:13:01 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:13:01 	_prf_ FO_QRY_POP_TO_JSON 	(13. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:13:01 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ NEW_REC_DEFAULTS_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["redirect"] = {
   [1] = "default";
  };
  ["show"] = "plg4d plugin 4d";
  ["language"] = "fi_fi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["valid_until"] = "2021-12-09 00:12:52";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["connection"] = "plg4d";
 };
};. 	8.12.2021 	23:13:01 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:13:02 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:13:02 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:13:03 	_arr apBlob 	(11. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:13:03 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:13:03 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:13:03 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:13:03 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:13:04 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:13:04 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:13:05 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"query_type": "","query_name": "","name": "Lista","list_name": "List...	1. 	8.12.2021 	23:13:05 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:13:05 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')'. 	8.12.2021 	23:13:05 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{\
\"tab\": [\
{\
\"query_type\": \"\",\
\"query_name\": \"\",\
\"name\": \"Lista\",\
\"list_name\": \"Lista\"\
}\
]\
}')";
 ["query_name"] = "dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	23:13:05 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:13:05 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:13:05 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:13:05 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}'). 	8.12.2021 	23:13:05 	lx 	(4. palvelin)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:13:05 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:13:05 	_prf _AlpJsonText 	(11. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:13:05 	_arr apBlob 	(11. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:13:05 	_arr apBlob 	(11. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:13:05 	_prf _AlpJsonText 	(11. AreaList to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:13:06 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:13:06 	_prf _AlpJsonText 	(11. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:13:06 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	23:13:06 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:13:06 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

*** Sql table parameter $7 error, field list is empty, generated fields:  , sql:  INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}'). 	8.12.2021 	23:14:15 	_lx_ExecuteSqlNew 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "query_type": "", "query_name": "", "name": "Lista", "list_name": "Lista" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:14:15 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')
'
 	8.12.2021 	23:14:15 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')


	1. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:14:15 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)

call4dFunction = {
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["redirect"] = {
   [1] = "default";
  };
  ["show"] = "plg4d plugin 4d";
  ["language"] = "fi_fi";
  ["organization_text"] = "0";
  ["database"] = "plg4d";
  ["valid_until"] = "2021-12-09 00:12:52";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["alias_id"] = "4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["connection"] = "plg4d";
 };
 ["call"] = "tabDefinition";
 ["parameter"] = {
  ["record_type"] = "customer";
  ["tab_query"] = "";
  ["query_name"] = "";
  ["table_prefix"] = "co";
  ["organization_id"] = "4d";
  ["table"] = "company";
  ["print_error"] = false;
  ["tab_name"] = "list";
 };
 ["sql"] = "CALL_4D_FUNCTION";
};. 	8.12.2021 	23:14:15 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000'. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["sql"] = "SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "date";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
 };
 ["field"] = {
  [1] = "co.name";
  [2] = "co.company_number";
  [3] = "co.email";
  [4] = "co.record_id";
  [5] = "co.language";
  [6] = "co.invoice_company_id";
  [7] = "co.info";
  [8] = "co.creation_date";
  [9] = "co.country";
  [10] = "co.terms_of_payment_id";
  [11] = "co.change_id";
  [12] = "co.sales_order_code_id";
  [13] = "co.name";
  [14] = "co.name_2";
  [15] = "co.post_code";
 };
};. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14. 	8.12.2021 	23:14:16 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:14:16 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:14:16 	_lx_ExecuteSqlNew 	(4. palvelin)

*** tcp close for sock 80, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 002 bytes ***	1. 	8.12.2021 	23:15:24 	lx 	(4. palvelin)

closing socket '80'	1. 	8.12.2021 	23:15:24 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:15:28 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_TAB_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["connection"] = "plg4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["valid_until"] = "2021-12-09 00:15:30";
  ["show"] = "plg4d plugin 4d";
  ["redirect"] = {
   [1] = "default";
  };
  ["database"] = "plg4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["alias_id"] = "4d";
 };
};. 	8.12.2021 	23:15:28 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ALP_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["connection"] = "plg4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["valid_until"] = "2021-12-09 00:15:30";
  ["show"] = "plg4d plugin 4d";
  ["redirect"] = {
   [1] = "default";
  };
  ["database"] = "plg4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["alias_id"] = "4d";
 };
};. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ LANG_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["connection"] = "plg4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["valid_until"] = "2021-12-09 00:15:30";
  ["show"] = "plg4d plugin 4d";
  ["redirect"] = {
   [1] = "default";
  };
  ["database"] = "plg4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["alias_id"] = "4d";
 };
};. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ FO_QRY_POP_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["connection"] = "plg4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["valid_until"] = "2021-12-09 00:15:30";
  ["show"] = "plg4d plugin 4d";
  ["redirect"] = {
   [1] = "default";
  };
  ["database"] = "plg4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["alias_id"] = "4d";
 };
};. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_POP_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["connection"] = "plg4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["valid_until"] = "2021-12-09 00:15:30";
  ["show"] = "plg4d plugin 4d";
  ["redirect"] = {
   [1] = "default";
  };
  ["database"] = "plg4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["alias_id"] = "4d";
 };
};. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "_prf_ NEW_REC_DEFAULTS_TO_JSON";
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["connection"] = "plg4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["valid_until"] = "2021-12-09 00:15:30";
  ["show"] = "plg4d plugin 4d";
  ["redirect"] = {
   [1] = "default";
  };
  ["database"] = "plg4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["alias_id"] = "4d";
 };
};. 	8.12.2021 	23:15:29 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:15:29 	_prf_ FO_QRY_POP_TO_JSON 	(13. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:15:30 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:15:30 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:15:31 	_lx_ExecuteSqlNew 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:15:31 	_arr apBlob 	(11. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:15:31 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:15:31 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:15:31 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json''. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:15:32 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:15:32 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"list_name": "Lista","query_type": "","name": "Lista","query_name": ...	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"query_type": "",
"name": "Lista",
"query_name": ""
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"query_type": "",
"name": "Lista",
"query_name": ""
}
]
}')'. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["sql"] = "INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{\
\"tab\": [\
{\
\"list_name\": \"Lista\",\
\"query_type\": \"\",\
\"name\": \"Lista\",\
\"query_name\": \"\"\
}\
]\
}')";
 ["query_name"] = "dsql.sqlExecuteUnsafe";
};. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"query_type": "",
"name": "Lista",
"query_name": ""
}
]
}'). 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "list_name": "Lista", "query_type": "", "name": "Lista", "query_name": "" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:15:33 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"query_type": "",
"name": "Lista",
"query_name": ""
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"query_type": "",
"name": "Lista",
"query_name": ""
}
]
}')
'
 	8.12.2021 	23:15:33 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"query_type": "",
"name": "Lista",
"query_name": ""
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"query_type": "",
"name": "Lista",
"query_name": ""
}
]
}')


	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json''. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'
 INTO :_lx_atExe1,:_lx_atExe2. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:15:33 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

call4dFunction = {
 ["sql"] = "CALL_4D_FUNCTION";
 ["call"] = "tabDefinition";
 ["parameter"] = {
  ["record_type"] = "customer";
  ["tab_query"] = "";
  ["query_name"] = "";
  ["print_error"] = false;
  ["organization_id"] = "4d";
  ["table"] = "company";
  ["table_prefix"] = "co";
  ["tab_name"] = "list";
 };
 ["auth"] = {
  ["is_local"] = true;
  ["organization_number"] = 0;
  ["connection"] = "plg4d";
  ["organization_id"] = "plg4d-plg4d-0";
  ["auth_token"] = "db62ffa6-7622-dfce-780f-0917c69fbe5f";
  ["organization_text"] = "0";
  ["language"] = "fi_fi";
  ["valid_until"] = "2021-12-09 00:15:30";
  ["show"] = "plg4d plugin 4d";
  ["redirect"] = {
   [1] = "default";
  };
  ["database"] = "plg4d";
  ["status"] = "inactive";
  ["schema"] = "4d";
  ["login_id"] = "pasi";
  ["alias_id"] = "4d";
 };
};. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() connQuery.queryText: 'SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000'. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

dsql.sqlQueryExecute driver.execute() option = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "string";
  [7] = "string";
  [8] = "date";
  [9] = "string";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
  [15] = "string";
 };
 ["query_name"] = "new:form/core/nc-list-form/query.json";
 ["sql"] = "SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code\
 FROM company co\
 WHERE co.record_id IS NOT NULL\
 LIMIT 2000";
 ["field"] = {
  [1] = "co.name";
  [2] = "co.company_number";
  [3] = "co.email";
  [4] = "co.record_id";
  [5] = "co.language";
  [6] = "co.invoice_company_id";
  [7] = "co.info";
  [8] = "co.creation_date";
  [9] = "co.country";
  [10] = "co.terms_of_payment_id";
  [11] = "co.change_id";
  [12] = "co.sales_order_code_id";
  [13] = "co.name";
  [14] = "co.name_2";
  [15] = "co.post_code";
 };
};. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 2. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement before 3. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

plg4d executeSqlIn4d setArrayStringElement after queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14. 	8.12.2021 	23:15:33 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:15:33 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:15:33 	_lx_ExecuteSqlNew 	(4. palvelin)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:15:33 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:15:33 	_prf _AlpJsonText 	(11. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:15:33 	_arr apBlob 	(11. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:15:33 	_arr apBlob 	(11. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:15:34 	_prf _AlpJsonText 	(11. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	23:15:34 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:15:34 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:15:34 	_prf _AlpJsonText 	(11. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:15:34 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:15:34 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	23:17:36 	_lx_SERVER 	(5. tbl_ 6)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

closing socket '78'	1. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

closing socket '79'	1. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          30
poll.fd_count:        1
pollCount:            14634
pollInCount:          30
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   22179
totalBytesSent:       56582	1. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 80
	1. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

closing socket '80'	1. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01217127e0. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01217127e0, size: 400. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01217127e0. 	8.12.2021 	23:17:36 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	23:17:36 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	8.12.2021 	23:18:01 	_lx_SERVER 	(4. palvelin)

* pathBin: /Users/pasi/nc/bin/bin_osx_arm64/. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012172e920, size: 400. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

All plugins have been loaded	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-08 23:18:02, used memory 3061.0 kb ---	5. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	8.12.2021 	23:18:02 	lx 	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-08 23:19:52
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 504
Content-Uncompressed-Length: 584

LZ4. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, local, database: plg4d, user: manage_demo'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:19:52 	_lx_ExecuteSqlNew 	(4. palvelin)


 1. answer time: 00:00:00.00099
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:19:52 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:19:52 	_prf_ FO_QRY_POP_TO_JSON 	(13. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:19:53 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:19:53 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:19:53 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:19:53 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:19:53 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:19:54 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:19:54 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:19:54 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:19:54 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:19:54 	_lx_ExecuteSqlNew 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:19:54 	_arr apBlob 	(11. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:19:54 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:19:54 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:19:54 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:19:54 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:19:54 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:19:54 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:19:55 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:19:55 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:19:55 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:19:55 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:19:55 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"list_name": "Lista","name": "Lista","query_type": "","query_name": ...	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "list_name": "Lista", "name": "Lista", "query_type": "", "query_name": "" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:19:56 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}')
'
 	8.12.2021 	23:19:56 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}')


	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:19:56 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:19:56 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:19:56 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:19:56 	_lx_ExecuteSqlNew 	(4. palvelin)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:19:56 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:19:56 	_prf _AlpJsonText 	(11. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:19:57 	_arr apBlob 	(11. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:19:57 	_arr apBlob 	(11. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:19:57 	_prf _AlpJsonText 	(11. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	23:19:57 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:19:57 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:19:57 	_prf _AlpJsonText 	(11. AreaList to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:19:57 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:19:57 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)

*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 001 bytes ***	1. 	8.12.2021 	23:20:16 	lx 	(4. palvelin)

closing socket '81'	1. 	8.12.2021 	23:20:16 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:30:37 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:30:37 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:30:37 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:30:37 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:30:37 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:30:37 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:30:37 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:30:37 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:30:38 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:30:38 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:30:38 	_prf_ FO_QRY_POP_TO_JSON 	(14. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:30:38 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:30:39 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:30:39 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:30:39 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:30:39 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:30:39 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:30:40 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:30:40 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:30:40 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:30:40 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:30:40 	_lx_ExecuteSqlNew 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:30:40 	_arr apBlob 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:30:40 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:30:40 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:30:40 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:30:40 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:30:40 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:30:40 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:30:41 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:30:41 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:30:41 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:30:41 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:30:41 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"query_name": "","name": "Lista","list_name": "Lista","query_type": ...	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"name": "Lista",
"list_name": "Lista",
"query_type": ""
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "query_name": "", "name": "Lista", "list_name": "Lista", "query_type": "" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:30:42 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"name": "Lista",
"list_name": "Lista",
"query_type": ""
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"name": "Lista",
"list_name": "Lista",
"query_type": ""
}
]
}')
'
 	8.12.2021 	23:30:42 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"name": "Lista",
"list_name": "Lista",
"query_type": ""
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"name": "Lista",
"list_name": "Lista",
"query_type": ""
}
]
}')


	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:30:42 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:30:42 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:30:42 	_prf _AlpJsonText 	(12. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:30:42 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:30:42 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:30:42 	_lx_ExecuteSqlNew 	(4. palvelin)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:30:43 	_arr apBlob 	(12. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:30:43 	_arr apBlob 	(12. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:30:43 	_prf _AlpJsonText 	(12. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	23:30:43 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:30:43 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:30:43 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:30:43 	_prf _AlpJsonText 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:30:43 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)

*** tcp close for sock 91, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 010 bytes ***	1. 	8.12.2021 	23:33:06 	lx 	(4. palvelin)

closing socket '91'	1. 	8.12.2021 	23:33:06 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:33:14 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:33:14 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:33:14 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:33:14 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:33:14 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:33:14 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:33:14 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:33:14 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:33:15 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:33:15 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:33:15 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:33:15 	_prf_ FO_QRY_POP_TO_JSON 	(14. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:33:16 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:33:16 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:33:16 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:33:16 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:33:16 	_lx_ExecuteSqlNew 	(4. palvelin)

Created preference: _lang_default.json. 	8.12.2021 	23:33:16 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:33:16 	_prf_ LANG_TO_JSON 	(13. Lang to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:33:16 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:33:16 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:33:16 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:33:16 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:33:16 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:33:17 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:33:17 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:33:17 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:33:17 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:33:17 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:33:17 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:33:17 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:33:17 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:33:17 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:33:17 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"list_name": "Lista","name": "Lista","query_type": "","query_name": ...	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "list_name": "Lista", "name": "Lista", "query_type": "", "query_name": "" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:33:18 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}')
'
 	8.12.2021 	23:33:18 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}')


	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)

4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"list_name": "Lista",
"name": "Lista",
"query_type": "",
"query_name": ""
}
]
}'). 	8.12.2021 	23:33:18 	_lx_SERVER 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:33:18 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:33:18 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:33:18 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:33:18 	_lx_ExecuteSqlNew 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:33:33 	_arr apBlob 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:33:33 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:33:34 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:33:34 	_prf _AlpJsonText 	(12. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:33:34 	_arr apBlob 	(12. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:33:34 	_arr apBlob 	(12. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:33:34 	_prf _AlpJsonText 	(12. AreaList to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:33:35 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:33:35 	_prf _AlpJsonText 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:33:35 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)

*** tcp close for sock 91, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 010 bytes ***	1. 	8.12.2021 	23:33:40 	lx 	(4. palvelin)

closing socket '91'	1. 	8.12.2021 	23:33:40 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:36 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:34:36 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:36 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:34:36 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:36 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:36 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:36 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:36 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:36 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:36 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:37 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:34:37 	_prf_ FO_QRY_POP_TO_JSON 	(14. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:37 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:34:37 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:37 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:34:37 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:37 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:38 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:34:38 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:38 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:34:38 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:38 	_lx_ExecuteSqlNew 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:34:38 	_arr apBlob 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:34:38 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:39 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:34:39 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:39 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:34:39 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:39 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:39 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:34:39 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:39 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:34:39 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:39 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"query_name": "","query_type": "","name": "Lista","list_name": "List...	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"query_type": "",
"name": "Lista",
"list_name": "Lista"
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "query_name": "", "query_type": "", "name": "Lista", "list_name": "Lista" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:34:40 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"query_type": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"query_type": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')
'
 	8.12.2021 	23:34:40 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"query_type": "",
"name": "Lista",
"list_name": "Lista"
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_name": "",
"query_type": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')


	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:40 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:34:40 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:34:40 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:40 	_lx_ExecuteSqlNew 	(4. palvelin)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:34:41 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:34:41 	_prf _AlpJsonText 	(12. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:34:41 	_arr apBlob 	(12. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:34:41 	_arr apBlob 	(12. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:34:41 	_prf _AlpJsonText 	(12. AreaList to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:34:42 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:34:42 	_prf _AlpJsonText 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:34:42 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	23:34:42 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:34:42 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

*** tcp close for sock 91, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 003 bytes ***	1. 	8.12.2021 	23:34:51 	lx 	(4. palvelin)

closing socket '91'	1. 	8.12.2021 	23:34:51 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:55 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:34:55 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:55 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:34:55 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:55 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:55 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:55 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:55 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:55 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:56 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:56 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:34:56 	_prf_ FO_QRY_POP_TO_JSON 	(14. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:57 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:34:57 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:57 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:34:57 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:57 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:57 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:34:57 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:57 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:34:57 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:57 	_lx_ExecuteSqlNew 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:34:58 	_arr apBlob 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:34:58 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:58 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:34:58 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:58 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:34:58 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:58 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:58 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:34:58 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:58 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:34:58 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:59 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"query_type": "","list_name": "Lista","query_name": "","name": "List...	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"list_name": "Lista",
"query_name": "",
"name": "Lista"
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "query_type": "", "list_name": "Lista", "query_name": "", "name": "Lista" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:34:59 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"list_name": "Lista",
"query_name": "",
"name": "Lista"
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"list_name": "Lista",
"query_name": "",
"name": "Lista"
}
]
}')
'
 	8.12.2021 	23:34:59 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"list_name": "Lista",
"query_name": "",
"name": "Lista"
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"list_name": "Lista",
"query_name": "",
"name": "Lista"
}
]
}')


	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:34:59 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:34:59 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:35:00 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:35:00 	_lx_ExecuteSqlNew 	(4. palvelin)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:35:00 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:35:00 	_prf _AlpJsonText 	(12. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:35:00 	_arr apBlob 	(12. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:35:00 	_arr apBlob 	(12. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:35:00 	_prf _AlpJsonText 	(12. AreaList to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:35:01 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:35:01 	_prf _AlpJsonText 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:35:01 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	23:35:01 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:35:01 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

*** tcp close for sock 91, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 001 bytes ***	1. 	8.12.2021 	23:36:26 	lx 	(4. palvelin)

closing socket '91'	1. 	8.12.2021 	23:36:26 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:36:29 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:36:29 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:36:29 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:36:29 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:36:29 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:36:29 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:36:29 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:36:30 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:36:30 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:36:30 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:36:30 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:36:30 	_prf_ FO_QRY_POP_TO_JSON 	(14. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:36:31 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:36:31 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:36:31 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:36:31 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:36:31 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:36:31 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:36:31 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:36:31 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:36:31 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:36:32 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:36:32 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:36:32 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:36:32 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:36:32 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:36:32 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:36:33 	_lx_ExecuteSqlNew 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:36:33 	_arr apBlob 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:36:33 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"query_type": "","name": "Lista","list_name": "Lista","query_name": ...	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"name": "Lista",
"list_name": "Lista",
"query_name": ""
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "query_type": "", "name": "Lista", "list_name": "Lista", "query_name": "" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:36:33 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"name": "Lista",
"list_name": "Lista",
"query_name": ""
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"name": "Lista",
"list_name": "Lista",
"query_name": ""
}
]
}')
'
 	8.12.2021 	23:36:33 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"name": "Lista",
"list_name": "Lista",
"query_name": ""
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"name": "Lista",
"list_name": "Lista",
"query_name": ""
}
]
}')


	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:36:33 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:36:34 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:36:34 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:36:34 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:36:34 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:36:34 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:36:34 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:36:34 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:36:34 	_lx_ExecuteSqlNew 	(4. palvelin)

Created preference: _lang_default.json. 	8.12.2021 	23:36:34 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:36:34 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:36:35 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:36:35 	_prf _AlpJsonText 	(12. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:36:35 	_arr apBlob 	(12. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:36:35 	_arr apBlob 	(12. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:36:35 	_prf _AlpJsonText 	(12. AreaList to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:36:35 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:36:35 	_prf _AlpJsonText 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:36:35 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)

*** tcp close for sock 91, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 004 bytes ***	1. 	8.12.2021 	23:37:26 	lx 	(4. palvelin)

closing socket '91'	1. 	8.12.2021 	23:37:26 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:37:31 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:37:31 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:37:31 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:37:31 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:37:31 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:37:31 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:37:31 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:37:31 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:37:31 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:37:31 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:37:32 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:37:32 	_prf_ FO_QRY_POP_TO_JSON 	(14. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:37:32 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:37:32 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:37:32 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:37:32 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:37:33 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:37:33 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:37:33 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:37:33 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:37:33 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:37:33 	_lx_ExecuteSqlNew 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:37:34 	_arr apBlob 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:37:34 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:37:34 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:37:34 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:37:34 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:37:34 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:37:34 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:37:34 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:37:34 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:37:34 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:37:34 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:37:34 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"query_type": "","query_name": "","name": "Lista","list_name": "List...	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "query_type": "", "query_name": "", "name": "Lista", "list_name": "Lista" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:37:35 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')
'
 	8.12.2021 	23:37:35 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')


	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)

4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}'). 	8.12.2021 	23:37:35 	_lx_SERVER 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:37:35 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:37:35 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:37:36 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:37:36 	_lx_ExecuteSqlNew 	(4. palvelin)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:37:36 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:37:36 	_prf _AlpJsonText 	(12. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:37:36 	_arr apBlob 	(12. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:37:36 	_arr apBlob 	(12. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:37:36 	_prf _AlpJsonText 	(12. AreaList to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:37:37 	_prf_ Data_OLD 	(12. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:37:37 	_prf _AlpJsonText 	(12. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:37:37 	_alpd_DEFINE_ARR_CHECK 	(12. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	23:37:37 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:37:37 	_prf_ LANG_TO_JSON 	(13. Lang to Json)

*** tcp close for sock 91, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 009 bytes ***	1. 	8.12.2021 	23:38:18 	lx 	(4. palvelin)

closing socket '91'	1. 	8.12.2021 	23:38:18 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:38:22 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:38:22 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:38:22 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:38:22 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:38:22 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:38:22 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:38:22 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:38:22 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:38:22 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:38:22 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:38:23 	lx 	(4. palvelin)

Created preference: output/query_field.json. 	8.12.2021 	23:38:23 	_prf_ FO_QRY_POP_TO_JSON 	(13. Output query pop to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:38:23 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:38:23 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:38:23 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:38:23 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:38:23 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:38:24 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:38:24 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:38:24 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:38:24 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:38:24 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:38:24 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:38:24 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:38:24 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:38:24 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:38:25 	_lx_ExecuteSqlNew 	(4. palvelin)

Alpd Field array and pointer array sizes are different: _alpd_apDefineArr. 	8.12.2021 	23:38:25 	_arr apBlob 	(11. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_fii_wo_4. Tot Työvaiheet’. 	8.12.2021 	23:38:25 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:38:25 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'	1. 	8.12.2021 	23:38:25 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:38:25 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'. 	8.12.2021 	23:38:25 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id LIKE '_tab_%.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id LIKE '_tab_%.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 39, first value: '_tab_w.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:38:25 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'dsql.sqlExecuteUnsafe'
    INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{"tab": [{"query_type": "","query_name": "","name": "Lista","list_name": "List...	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}'), dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{ "tab": [ { "query_type": "", "query_name": "", "name": "Lista", "list_name": "Lista" } ] }')
 - result _lx_atExe1 size: 0
 - query name: dsql.sqlExecuteUnsafe. 	8.12.2021 	23:38:26 	_lx_ExecuteSqlNew 	(4. palvelin)

sql: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')
'
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')
'
 	8.12.2021 	23:38:26 	_lx_ExecuteSqlNew 	(4. palvelin)

warning: 
*** sql error: 4d execute sql error -1: Error 0, Duplicated key: _tab_default.json on field Name_ID of table _Preference (dbmg 1115)
Cannot update new record in table _Preference of database Manageri_v19 (dbmg 1247)
Cannot save new record in table _Preference of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}') 
INSERT INTO _preference (name_id, text_value) VALUES ('_tab_default.json', '{
"tab": [
{
"query_type": "",
"query_name": "",
"name": "Lista",
"list_name": "Lista"
}
]
}')


	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json', new:dsql.sqlExecuteUnsafe	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:38:26 	_lx_ExecuteSqlNew 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co...	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)


dsql.sqlQueryExecute (plg4d/nil): SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000, new:form/core/nc-list-form/query.json	1. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name_2, co.post_code
 FROM company co
 WHERE co.record_id IS NOT NULL
 LIMIT 2000. 	8.12.2021 	23:38:26 	lx 	(4. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	8.12.2021 	23:38:26 	_arr apCheck 	(4. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1 - original query:
SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	8.12.2021 	23:38:26 	_lx_ExecuteSqlNew 	(4. palvelin)

Blobin koko on nolla asetukselle: _fo_sOperatorPopDefault. 	8.12.2021 	23:38:27 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _fo_sOperatorPopDefault. 	8.12.2021 	23:38:27 	_prf _AlpJsonText 	(11. AreaList to Json)

Osoitintaulukko on suurempi kuin tyyppitaulukko: _alpd_apDefineArr. 	8.12.2021 	23:38:27 	_arr apBlob 	(11. AreaList to Json)

Muuttujan tyyppi blobissa ei ole sama kuin osoitintaulussa. Indeksi: _alpd_apDefineArr{1}, Muuttuja: _alpd_lFldMany. 	8.12.2021 	23:38:27 	_arr apBlob 	(11. AreaList to Json)

Preference load error, preference: _fo_TabDefault. 	8.12.2021 	23:38:27 	_prf _AlpJsonText 	(11. AreaList to Json)

Created preference: _lang_default.json. 	8.12.2021 	23:38:28 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

Created preference: _lang_FIN.json. 	8.12.2021 	23:38:28 	_prf_ LANG_TO_JSON 	(12. Lang to Json)

Blobin koko on nolla asetukselle: _link_pr_QryFilter. 	8.12.2021 	23:38:28 	_prf_ Data_OLD 	(11. AreaList to Json)

Preference load error, preference: _link_pr_QryFilter. 	8.12.2021 	23:38:28 	_prf _AlpJsonText 	(11. AreaList to Json)

Listamäärittelyä ei voida lukea: ’_link_prpg_Default’. 	8.12.2021 	23:38:28 	_alpd_DEFINE_ARR_CHECK 	(11. AreaList to Json)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:40:35 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:40:35 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:40:35 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:40:35 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:43:05 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:43:05 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:43:05 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:43:05 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:45:23 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:45:24 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:45:24 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:45:24 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:46:19 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:46:19 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:46:19 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:46:19 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:46:38 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:46:38 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:46:38 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:46:38 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:47:35 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:47:35 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:47:35 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:47:35 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:49:02 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:49:02 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:49:02 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:49:02 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:50:53 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:50:53 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:50:53 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:50:53 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:51:42 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:51:42 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:51:42 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:51:42 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:52:19 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:52:19 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:52:19 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:52:19 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:53:47 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:53:47 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:53:47 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:53:47 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:54:08 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:54:08 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:54:08 	_var FldVarTypeMatch 	(10. Check NaN)

Kenttien ja muuttujien tyypit eivät täsmää
Kenttä: [zKoodihistoria]ID
Muuttuja: _long. 	8.12.2021 	23:54:08 	_var FldVarTypeMatch 	(10. Check NaN)

Starting to stop tcp server 2, max. delay 1 seconds... 	8.12.2021 	23:55:08 	_lx_SERVER 	(5. tbl_ 6)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

closing socket '79'	1. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

closing socket '80'	1. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          120
poll.fd_count:        1
pollCount:            157752
pollInCount:          120
pollOutCount:         0
pollCloseCount:       7
pollErrCount:         0
fd add/remove count:  10/9
totalBytesReceived:   88829
totalBytesSent:       226452	1. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 91
	1. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

closing socket '91'	1. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x012172e920. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012172e920, size: 400. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

--- server stopped ---. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x012172e920. 	8.12.2021 	23:55:09 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	8.12.2021 	23:55:09 	_lx_SERVER 	(4. palvelin)

